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": "2990c4cc-0c1c-4bda-bd56-25e62661113f",
"Asset": {
"AssetId": "ac638b60-3f13-4fc5-8381-3a573927460c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "0d4712fc-3702-49f0-bde8-eaef379eb88c",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1b184cad-58a5-4d17-afd4-20ba8af167f1",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "8a8f2dad-7663-49aa-a0bf-38267e40eea1",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-07T19:14:46.161402-07:00",
"MeasurementValueNeededDate": "2026-06-07T19:14:46.161402-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "07f94767-8065-44b3-90c0-6f616e6818f2",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "e042ed5c-3923-4e2e-be66-c6c8c76abb4e",
"EffectiveDate": "2026-06-07T19:14:46.161402-07:00",
"StatusType": {
"StatusTypeId": "309f2389-d672-43e8-b2f0-779d8327b2ac",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "0d4712fc-3702-49f0-bde8-eaef379eb88c",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1b184cad-58a5-4d17-afd4-20ba8af167f1",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "1c4bb7d0-1fd2-4902-ac9b-9d620b170981",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "d612c6e8-98a0-402e-b2ed-6c33f5956859",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "262a8563-bc63-47e4-83c4-ddb04a851aad",
"EffectiveDate": "2026-06-07T19:14:46.161402-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "bd48e028-734b-4e9b-8b26-b61fae9da0ba",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "491e5bb8-c247-4047-a0b5-bf1d2bd3e223",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "30455798-bdfd-4ac7-b44d-5c19e34873b2",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-06-07T19:14:46.161402-07:00",
"MeasurementValueNeededDate": "2026-06-07T19:14:46.161402-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "25af2ca6-4f99-4d23-ae86-6014f06bc364",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-06-07T19:14:46.161402-07:00",
"StateType": {
"StateTypeId": "b5450c74-9f74-45b2-b929-af4cb5e27305",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "0d4712fc-3702-49f0-bde8-eaef379eb88c",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1b184cad-58a5-4d17-afd4-20ba8af167f1",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "671e6841-d6bd-4ec1-bc67-f8b7a69e4dd0",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a4d82fe9-e0ac-4b60-a727-717c19bea5c4",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07: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": "9de598bb-7c2d-4170-bf07-ea5f5a8d0e46",
"Asset": {
"AssetId": "cc828a1c-b58a-4700-8d2d-c7e1035347e1",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "cf816ae0-5a1d-4007-8f41-173661d540be",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "6e08c68e-f430-4c24-bf8f-2cda77f5b6c1",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "52b821d2-d6a3-4036-8ac5-85c8d7497fa1",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-07T19:14:46.161402-07:00",
"MeasurementValueNeededDate": "2026-06-07T19:14:46.161402-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "0bb86f22-2628-4ad1-81e3-6a009a3604fd",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "eba80f83-cc84-41f3-b603-ac65b26ba197",
"EffectiveDate": "2026-06-07T19:14:46.161402-07:00",
"StatusType": {
"StatusTypeId": "f5bf4a66-64b7-42ef-85c4-391766ec5d79",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "cf816ae0-5a1d-4007-8f41-173661d540be",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "6e08c68e-f430-4c24-bf8f-2cda77f5b6c1",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "76a10f97-c34d-4750-82b7-cdbfb3c36876",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "217b0253-468a-4123-a785-c472a29d5989",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "e0d71b99-2c71-44bd-a7b0-ef5d7d370288",
"EffectiveDate": "2026-06-07T19:14:46.161402-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "287ee0ea-2047-4c6f-8e3b-7285209a693c",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "00f0b114-c0c4-4b9e-8824-4b59b24846e2",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "9837aa6a-ca55-4945-812f-36fe1d3bb5cd",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-06-07T19:14:46.161402-07:00",
"MeasurementValueNeededDate": "2026-06-07T19:14:46.161402-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "08e8cb5d-2100-40e9-8f76-4d95e9d31de6",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-06-07T19:14:46.161402-07:00",
"StateType": {
"StateTypeId": "b46b2db1-03a0-4bb8-9862-add01c5c26a9",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "cf816ae0-5a1d-4007-8f41-173661d540be",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "6e08c68e-f430-4c24-bf8f-2cda77f5b6c1",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "13ff771a-63ef-4c8c-834d-43bad6855921",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "4413602a-80a5-490d-a235-5175f7f2fa46",
"CreateDate": "2026-06-07T19:14:46.161402-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-07T19:14:46.161402-07:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}