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": "78631b99-2563-42af-952f-148b1f127519",
"Asset": {
"AssetId": "3fa4fdcb-2aa5-4ac6-8e01-3d3b51c4e28d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "fee4703f-0f8b-4f99-9d03-44b7bd9ccda1",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "20736d75-5f3b-448b-8269-33b9b27aeb2e",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "dd3f1d81-38e0-4fc9-9b2c-1852bbdaae14",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-11T22:27:28.905811-07:00",
"MeasurementValueNeededDate": "2026-08-11T22:27:28.905811-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "10f2e66b-7ad9-4e52-b40d-af5454b0520f",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "f830c83e-aa8c-4b3f-a197-d7b1ca6da4a9",
"EffectiveDate": "2026-08-11T22:27:28.905811-07:00",
"StatusType": {
"StatusTypeId": "56622065-42c1-4d8c-b73b-7b30218be794",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "fee4703f-0f8b-4f99-9d03-44b7bd9ccda1",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "20736d75-5f3b-448b-8269-33b9b27aeb2e",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "72ee4cae-4a61-4394-9d7e-f92fb3f59275",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "b7289488-5715-437c-bf04-ee4b4812c6cd",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "6fdec8c9-a5b0-41dd-8f91-06b1288ec1d3",
"EffectiveDate": "2026-08-11T22:27:28.905811-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "3f3d27c0-8c3c-42a9-8085-f7bd29032f52",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "b6278891-d082-4e5c-943f-ab306ba45ecd",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a3fb32bd-de19-4554-ad83-aebf0fc45104",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-08-11T22:27:28.905811-07:00",
"MeasurementValueNeededDate": "2026-08-11T22:27:28.905811-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "3b5213e4-4ff6-4a8f-8590-2634ed2f3084",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-08-11T22:27:28.905811-07:00",
"StateType": {
"StateTypeId": "41f398cb-ac7e-45db-bebf-c5621877e8bd",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "fee4703f-0f8b-4f99-9d03-44b7bd9ccda1",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "20736d75-5f3b-448b-8269-33b9b27aeb2e",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "1e33ad65-46c7-47af-ae97-161848ecf0eb",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "bb0ea290-cf7c-4466-b750-b46c73d11aee",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:27:28.905811-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": "aa0af9a8-c501-4fdf-a917-d8552d2d93d9",
"Asset": {
"AssetId": "66a9bbfd-017e-4be9-b27a-fda4e3c96ff9",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "b3ea22a0-58f1-457a-8439-c0e77383f914",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "76899780-276e-4c2c-b976-73c1cc1eec90",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "7a16ce0c-6d22-47df-a2d4-810f47515d01",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-11T22:27:28.905811-07:00",
"MeasurementValueNeededDate": "2026-08-11T22:27:28.905811-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "83365380-a1fb-49c7-b0c9-de9512485ff1",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "8caefc81-51b8-4fe0-a0c4-2318bcc83899",
"EffectiveDate": "2026-08-11T22:27:28.905811-07:00",
"StatusType": {
"StatusTypeId": "99466e70-a253-4b3f-bb82-991918c482d4",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "b3ea22a0-58f1-457a-8439-c0e77383f914",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "76899780-276e-4c2c-b976-73c1cc1eec90",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "9df2c646-0b81-423f-8a40-4a272db0a28a",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "e728908d-6111-46d4-bfb7-5e5691c31fb1",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "250b90b9-0aef-4a79-95cc-4fe37b6cd322",
"EffectiveDate": "2026-08-11T22:27:28.905811-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "77a9e681-50b1-4e7e-a4db-c47d58372bf8",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ba7c51a2-afc3-4cb5-9c30-d82201ec5373",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "beba5962-938a-482d-82c8-815cf5b79c21",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-08-11T22:27:28.905811-07:00",
"MeasurementValueNeededDate": "2026-08-11T22:27:28.905811-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "20912647-ee26-4291-8cbb-6d1805a33317",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-08-11T22:27:28.905811-07:00",
"StateType": {
"StateTypeId": "89681996-cb88-4588-9260-afb3ae451cdd",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "b3ea22a0-58f1-457a-8439-c0e77383f914",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "76899780-276e-4c2c-b976-73c1cc1eec90",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "74b9b94a-f196-441c-aa43-f0667dc0cbc7",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "cda976e8-7512-431b-b2f8-17fe7dd6f6fc",
"CreateDate": "2026-08-11T22:27:28.905811-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:27:28.905811-07:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}