POST States

Creates a new state.

Request Information

URI Parameters

None.

Body Parameters

The state to create. StateId should not be filled in.

State
NameDescriptionTypeAdditional information
StateId

globally unique identifier

None.

Asset

Asset

None.

EffectiveDate

date

None.

StateType

StateType

None.

SourceSystemId

string

None.

CompanyId

globally unique identifier

None.

CreateDate

date

None.

CreateUser

string

None.

LastModifiedDate

date

None.

LastModifiedUser

string

None.

Request Formats

application/json, text/json

Sample:
{
  "StateId": "d55a728c-d1ef-41fe-8c3e-bba1a3006018",
  "Asset": {
    "AssetId": "08873d32-19fd-42bb-a828-a95290f6a73c",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "296ce926-9b80-4e88-9b3d-fb1215bed855",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "IsWell": true,
      "DisplayColor": "sample string 4",
      "SourceSystemId": "sample string 5",
      "CompanyId": "c8e61b37-2ec8-495b-957a-6cc7f1f3850c",
      "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "AssetGroup": {
      "AssetGroupId": "474a8a15-4f29-4401-94dc-7e153b17a70d",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2024-11-23T00:19:03.5443625-08:00",
      "MeasurementValueNeededDate": "2024-11-23T00:19:03.5443625-08:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "b158ce0d-e8f6-4ba5-87e5-f529789d7f61",
      "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "Status": {
      "StatusId": "782f6e21-f545-4d8a-a698-9bae5bc4bf54",
      "EffectiveDate": "2024-11-23T00:19:03.5443625-08:00",
      "StatusType": {
        "StatusTypeId": "0b6e40fd-ab95-4231-a054-1c40c664f624",
        "Name": "sample string 1",
        "IsProducing": true,
        "IsInjecting": true,
        "AssetType": {
          "AssetTypeId": "296ce926-9b80-4e88-9b3d-fb1215bed855",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "IsWell": true,
          "DisplayColor": "sample string 4",
          "SourceSystemId": "sample string 5",
          "CompanyId": "c8e61b37-2ec8-495b-957a-6cc7f1f3850c",
          "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
          "CreateUser": "sample string 7",
          "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
          "LastModifiedUser": "sample string 8"
        },
        "SourceSystemId": "sample string 4",
        "CompanyId": "4799b51c-048b-4424-aa67-3e4bc9c379e1",
        "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "23861af5-802d-4fe1-ad14-35bc5e18ab84",
      "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
      "LastModifiedUser": "sample string 4"
    },
    "WellPurpose": {
      "WellPurposeId": "68ea6fd5-d127-4bb6-a929-10a36eb208d6",
      "EffectiveDate": "2024-11-23T00:19:03.5443625-08:00",
      "WellPurposeType": {
        "WellPurposeTypeId": "e34eeab2-1de6-4541-84e9-197ee2970a01",
        "IsProducer": true,
        "IsInjector": true,
        "Name": "sample string 3",
        "SourceSystemId": "sample string 4",
        "CompanyId": "32b93386-995b-47a4-80c7-35c75ed1873c",
        "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "73f4524b-b456-4321-b0e2-0d6cd5f4425d",
      "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
      "LastModifiedUser": "sample string 4"
    },
    "FormValueNeededDate": "2024-11-23T00:19:03.5443625-08:00",
    "MeasurementValueNeededDate": "2024-11-23T00:19:03.5443625-08:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "1feea7d9-41f2-4e1c-8175-270302992eb0",
    "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "EffectiveDate": "2024-11-23T00:19:03.5443625-08:00",
  "StateType": {
    "StateTypeId": "0c61aeb1-0b2a-4b06-82d1-abbc8f911175",
    "Name": "sample string 1",
    "IsOperational": true,
    "AssetType": {
      "AssetTypeId": "296ce926-9b80-4e88-9b3d-fb1215bed855",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "IsWell": true,
      "DisplayColor": "sample string 4",
      "SourceSystemId": "sample string 5",
      "CompanyId": "c8e61b37-2ec8-495b-957a-6cc7f1f3850c",
      "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "SourceSystemId": "sample string 3",
    "CompanyId": "2b8cfc82-32a4-45e2-a282-c121cb1e1bb5",
    "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "SourceSystemId": "sample string 1",
  "CompanyId": "1c3e9376-7f1f-46c4-a8ed-a5a62e2ae492",
  "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
  "CreateUser": "sample string 3",
  "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
  "LastModifiedUser": "sample string 4"
}

Response Information

Resource Description

On success, the created state.

NameDescriptionTypeAdditional information
Data

State

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "StateId": "335c5861-872d-42d9-841a-59074a6a3d42",
    "Asset": {
      "AssetId": "a02b0d67-52c8-4da5-8d22-d09b0ef2338c",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayOrder": 1,
      "AssetType": {
        "AssetTypeId": "8dadba1a-4936-4ec9-b948-0cbddd872eb8",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "IsWell": true,
        "DisplayColor": "sample string 4",
        "SourceSystemId": "sample string 5",
        "CompanyId": "9b343149-73ba-4cf6-8028-7a4bbc370da9",
        "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
        "CreateUser": "sample string 7",
        "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
        "LastModifiedUser": "sample string 8"
      },
      "AssetGroup": {
        "AssetGroupId": "ce0c1463-ee7a-43ad-928e-c70161a7fece",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "ParentGroup": null,
        "DisplayOrder": 1,
        "FormValueNeededDate": "2024-11-23T00:19:03.5443625-08:00",
        "MeasurementValueNeededDate": "2024-11-23T00:19:03.5443625-08:00",
        "SourceSystemId": "sample string 3",
        "CompanyId": "4d404292-ecb4-4f43-b45c-97bc420c7735",
        "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "ParentAsset": null,
      "Location": "sample string 3",
      "Barcode": {
        "Format": 0,
        "Code": "sample string 1"
      },
      "Status": {
        "StatusId": "9c1650c1-9845-4d26-90af-00cdaadb1e9c",
        "EffectiveDate": "2024-11-23T00:19:03.5443625-08:00",
        "StatusType": {
          "StatusTypeId": "751ac9e0-496d-44d5-bd66-c8e95323cf3b",
          "Name": "sample string 1",
          "IsProducing": true,
          "IsInjecting": true,
          "AssetType": {
            "AssetTypeId": "8dadba1a-4936-4ec9-b948-0cbddd872eb8",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "IsWell": true,
            "DisplayColor": "sample string 4",
            "SourceSystemId": "sample string 5",
            "CompanyId": "9b343149-73ba-4cf6-8028-7a4bbc370da9",
            "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
            "CreateUser": "sample string 7",
            "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
            "LastModifiedUser": "sample string 8"
          },
          "SourceSystemId": "sample string 4",
          "CompanyId": "57f73cd8-bf23-42b9-b61b-c687fa405b0c",
          "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
          "CreateUser": "sample string 6",
          "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
          "LastModifiedUser": "sample string 7"
        },
        "SourceSystemId": "sample string 1",
        "CompanyId": "f0734abd-b287-4d7c-9975-af004bf51b12",
        "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
        "CreateUser": "sample string 3",
        "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
        "LastModifiedUser": "sample string 4"
      },
      "WellPurpose": {
        "WellPurposeId": "79bb2e91-135e-4c83-b060-0d91e2605079",
        "EffectiveDate": "2024-11-23T00:19:03.5443625-08:00",
        "WellPurposeType": {
          "WellPurposeTypeId": "51a56d35-8484-489e-9266-109de79a6563",
          "IsProducer": true,
          "IsInjector": true,
          "Name": "sample string 3",
          "SourceSystemId": "sample string 4",
          "CompanyId": "1f171ac9-c5c0-48da-8eaa-d3b4389677c4",
          "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
          "CreateUser": "sample string 6",
          "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
          "LastModifiedUser": "sample string 7"
        },
        "SourceSystemId": "sample string 1",
        "CompanyId": "d86fc9cc-498c-4a67-8c45-bf28a0f94d2f",
        "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
        "CreateUser": "sample string 3",
        "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
        "LastModifiedUser": "sample string 4"
      },
      "FormValueNeededDate": "2024-11-23T00:19:03.5443625-08:00",
      "MeasurementValueNeededDate": "2024-11-23T00:19:03.5443625-08:00",
      "HasChildren": true,
      "SourceSystemId": "sample string 5",
      "CompanyId": "e21febcb-1b48-4bbc-b773-9b6edd160237",
      "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "EffectiveDate": "2024-11-23T00:19:03.5443625-08:00",
    "StateType": {
      "StateTypeId": "d6c2f48c-07ad-4c2a-bdba-ac4d6869975d",
      "Name": "sample string 1",
      "IsOperational": true,
      "AssetType": {
        "AssetTypeId": "8dadba1a-4936-4ec9-b948-0cbddd872eb8",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "IsWell": true,
        "DisplayColor": "sample string 4",
        "SourceSystemId": "sample string 5",
        "CompanyId": "9b343149-73ba-4cf6-8028-7a4bbc370da9",
        "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
        "CreateUser": "sample string 7",
        "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
        "LastModifiedUser": "sample string 8"
      },
      "SourceSystemId": "sample string 3",
      "CompanyId": "61380513-69d4-44c8-8d01-2770ce54ee8b",
      "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "SourceSystemId": "sample string 1",
    "CompanyId": "d389dd13-267b-4e71-a20b-40a020ed2662",
    "CreateDate": "2024-11-23T00:19:03.5443625-08:00",
    "CreateUser": "sample string 3",
    "LastModifiedDate": "2024-11-23T00:19:03.5443625-08:00",
    "LastModifiedUser": "sample string 4"
  },
  "Total": 1,
  "Message": "sample string 1"
}