POST States
Creates a new state.
Request Information
URI Parameters
None.
Body Parameters
The state to create. StateId should not be filled in.
State| Name | Description | Type | Additional 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": "96cde28d-6437-413a-8134-7961ef374857",
"Asset": {
"AssetId": "5f18b532-de53-419f-8318-f09b83c3d25a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "a142be60-5ae3-4d0d-b70b-82b7087de3d6",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "05602206-42f5-4afe-a8ba-bb4f850c82d4",
"CreateDate": "2025-12-23T19:04:34.7089479-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-23T19:04:34.7089479-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "4716225e-6af8-4962-9a83-7a382a3d1b32",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-23T19:04:34.7089479-08:00",
"MeasurementValueNeededDate": "2025-12-23T19:04:34.7089479-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "3692fb67-4a99-49da-9210-9e04d3679394",
"CreateDate": "2025-12-23T19:04:34.7089479-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-23T19:04:34.7089479-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "207f7f03-7953-42f8-90e2-601e7ee0a082",
"EffectiveDate": "2025-12-23T19:04:34.7089479-08:00",
"StatusType": {
"StatusTypeId": "7e77c1bc-7b49-43c6-a85d-68fdc157aa14",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "a142be60-5ae3-4d0d-b70b-82b7087de3d6",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "05602206-42f5-4afe-a8ba-bb4f850c82d4",
"CreateDate": "2025-12-23T19:04:34.7089479-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-23T19:04:34.7089479-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "c138b97b-d85e-404d-bdb4-895028ca8e20",
"CreateDate": "2025-12-23T19:04:34.7089479-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-23T19:04:34.7089479-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "9169d7f7-7aae-4507-bf15-71f224a57009",
"CreateDate": "2025-12-23T19:04:34.7089479-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-23T19:04:34.7089479-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "d29036cb-979e-4060-9d00-55fcf4a614a9",
"EffectiveDate": "2025-12-23T19:04:34.7089479-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "e43226cd-9a11-4f65-b3e2-cd24ce45462e",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "29aabf2f-cb43-4a50-8892-d1b3fc1a111b",
"CreateDate": "2025-12-23T19:04:34.7089479-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-23T19:04:34.7089479-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "717881d0-2371-4aef-a3aa-d0694eb1bf7f",
"CreateDate": "2025-12-23T19:04:34.7089479-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-23T19:04:34.7089479-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-12-23T19:04:34.7089479-08:00",
"MeasurementValueNeededDate": "2025-12-23T19:04:34.7089479-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "634bc6fb-e081-4571-8dc8-0ce4f893edbe",
"CreateDate": "2025-12-23T19:04:34.7089479-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-23T19:04:34.7089479-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2025-12-23T19:04:34.7089479-08:00",
"StateType": {
"StateTypeId": "d38a1b35-7f05-4853-9161-7a7fdac74147",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "a142be60-5ae3-4d0d-b70b-82b7087de3d6",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "05602206-42f5-4afe-a8ba-bb4f850c82d4",
"CreateDate": "2025-12-23T19:04:34.7089479-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-23T19:04:34.7089479-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "2ae3f539-9b4a-493a-ae85-df8d31225afc",
"CreateDate": "2025-12-23T19:04:34.7089479-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-23T19:04:34.7089479-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "023543c6-6c39-4a7a-a84d-c34a3e1083ca",
"CreateDate": "2025-12-23T19:04:34.7089479-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-23T19:04:34.7089479-08:00",
"LastModifiedUser": "sample string 4"
}
Response Information
Resource Description
On success, the created state.
| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | State |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"StateId": "e2d3f0c9-7801-4115-9d15-af19197230c8",
"Asset": {
"AssetId": "88dac637-26e7-44ea-becd-13660e0f71f6",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "2aead02d-bed8-480f-9dac-1934192a8e0d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "df1d3a08-5a26-43d4-8484-cad5af14ccc3",
"CreateDate": "2025-12-23T19:04:34.7245726-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-23T19:04:34.7245726-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "5d53e850-002f-46c1-a354-073d0955b494",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-23T19:04:34.7245726-08:00",
"MeasurementValueNeededDate": "2025-12-23T19:04:34.7245726-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "e66095bf-2228-404a-8328-213fb04346a6",
"CreateDate": "2025-12-23T19:04:34.7245726-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-23T19:04:34.7245726-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "7779ce22-1fb8-4c9e-8f4c-4c7ad3c680ab",
"EffectiveDate": "2025-12-23T19:04:34.7245726-08:00",
"StatusType": {
"StatusTypeId": "9bca591f-ba64-4ee4-8e21-5861a1569321",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "2aead02d-bed8-480f-9dac-1934192a8e0d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "df1d3a08-5a26-43d4-8484-cad5af14ccc3",
"CreateDate": "2025-12-23T19:04:34.7245726-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-23T19:04:34.7245726-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "8b361ab5-d198-4160-8dee-be1d2a60ff20",
"CreateDate": "2025-12-23T19:04:34.7245726-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-23T19:04:34.7245726-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "ed283a86-0481-4c9c-a758-85dea8e4d71a",
"CreateDate": "2025-12-23T19:04:34.7245726-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-23T19:04:34.7245726-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "cbf48a89-7aa2-4581-839a-6808b4e08896",
"EffectiveDate": "2025-12-23T19:04:34.7245726-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "16139c67-9e44-45b7-b1c7-c302dd52a3ee",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "35805f8a-0986-49c5-9714-42fa8ca11b55",
"CreateDate": "2025-12-23T19:04:34.7245726-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-23T19:04:34.7245726-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "7891ab0a-294a-40a5-aad0-bd78f45cf324",
"CreateDate": "2025-12-23T19:04:34.7245726-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-23T19:04:34.7245726-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-12-23T19:04:34.7245726-08:00",
"MeasurementValueNeededDate": "2025-12-23T19:04:34.7245726-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "1c814884-b383-4a39-96a0-3b88808222bb",
"CreateDate": "2025-12-23T19:04:34.7245726-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-23T19:04:34.7245726-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2025-12-23T19:04:34.7245726-08:00",
"StateType": {
"StateTypeId": "6ef08735-dc74-4d5f-b8e2-16a120ca2e4b",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "2aead02d-bed8-480f-9dac-1934192a8e0d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "df1d3a08-5a26-43d4-8484-cad5af14ccc3",
"CreateDate": "2025-12-23T19:04:34.7245726-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-23T19:04:34.7245726-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "68bb1488-6dc3-469f-9f77-cbc1d2bd3591",
"CreateDate": "2025-12-23T19:04:34.7245726-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-23T19:04:34.7245726-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "08ae0201-1eed-4a55-a81b-80d10ea47ec0",
"CreateDate": "2025-12-23T19:04:34.7245726-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-23T19:04:34.7245726-08:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}