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": "e4808e50-235c-4e0a-abcc-0398277aa036",
"Asset": {
"AssetId": "f8edd903-0f35-488b-8354-b69671646386",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "393f9209-b55a-47a5-8895-514036326671",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "e40cc68f-b0c9-4d23-b1f6-0683796069c3",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "ccb9a922-9f30-4c48-ae04-ab5592eb9da9",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-09T08:43:04.2552991-08:00",
"MeasurementValueNeededDate": "2025-12-09T08:43:04.2552991-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "25d82ba3-2a64-4a84-8980-0f570b1e6ebc",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "1d842a52-f7d5-45b8-add7-4c74dd8b81ab",
"EffectiveDate": "2025-12-09T08:43:04.2552991-08:00",
"StatusType": {
"StatusTypeId": "d0fb1b92-c1f3-4309-bd17-f54703e60f0d",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "393f9209-b55a-47a5-8895-514036326671",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "e40cc68f-b0c9-4d23-b1f6-0683796069c3",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "dc5bc460-efac-4381-84de-f66cb54d89eb",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a65a3dd0-cfc3-414a-aab0-71ca56b9f0b2",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "1c62f1bd-463a-4564-a556-1b926ccd1e45",
"EffectiveDate": "2025-12-09T08:43:04.2552991-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "e324cc03-54bf-4dfc-8b2f-af043e2105d4",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "490212d8-72e6-49e2-b347-a9e3ab809360",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "e0978e5e-6a17-4f6c-8dee-be652e481073",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-12-09T08:43:04.2552991-08:00",
"MeasurementValueNeededDate": "2025-12-09T08:43:04.2552991-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f1bc1771-9b4f-4f6c-8279-0ac03d428e75",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2025-12-09T08:43:04.2552991-08:00",
"StateType": {
"StateTypeId": "cecdeea8-c7d6-46c5-910c-d67697a3f50b",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "393f9209-b55a-47a5-8895-514036326671",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "e40cc68f-b0c9-4d23-b1f6-0683796069c3",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "9b35889e-ece8-48a7-ac06-094f407c16e0",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "5d913a6b-eb86-4631-8ce3-e9af50c4136f",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-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": "148ad2bd-dae2-47b6-9e04-5eec6e55f0fe",
"Asset": {
"AssetId": "5b015ef2-65c2-43c9-b05c-ac46ec318ece",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "7a150402-0aa3-43ae-9ad3-9dd72d1f2346",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f1a495da-0971-414e-9731-52c67f650299",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "87c151e2-86ef-4bf9-a92c-60815ec6064c",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-09T08:43:04.2552991-08:00",
"MeasurementValueNeededDate": "2025-12-09T08:43:04.2552991-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "e1f1e25e-8478-4daf-b114-55a9982f9649",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "92d5de38-0031-4109-9a64-b4d1b3ae8816",
"EffectiveDate": "2025-12-09T08:43:04.2552991-08:00",
"StatusType": {
"StatusTypeId": "6778591f-6f95-44d3-8afc-3c98d7e91358",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "7a150402-0aa3-43ae-9ad3-9dd72d1f2346",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f1a495da-0971-414e-9731-52c67f650299",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "109f2289-cdf5-4ac9-aefc-899ab482020b",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "6ff9eea3-3831-408e-99cd-969d27415141",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "597af0c0-c768-47cf-90d7-0637a4e4f0a5",
"EffectiveDate": "2025-12-09T08:43:04.2552991-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "8a7e6f01-f048-4a9e-92fb-c3eae25d6348",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "5e8e3e62-e32e-4e69-a19d-2f98083955d4",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a4c62764-b3ee-4d7c-8d85-f27d04060fd2",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-12-09T08:43:04.2552991-08:00",
"MeasurementValueNeededDate": "2025-12-09T08:43:04.2552991-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "c2ed9a27-fdf6-49f2-a976-7067a5a92d3b",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2025-12-09T08:43:04.2552991-08:00",
"StateType": {
"StateTypeId": "aa3d8253-6a19-4c83-9b1b-c063f68a48cc",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "7a150402-0aa3-43ae-9ad3-9dd72d1f2346",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f1a495da-0971-414e-9731-52c67f650299",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "dfef2eb4-450e-4cb9-be26-59793e6a90ac",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "6f836faa-f58d-4ae4-87a7-ec3284909d46",
"CreateDate": "2025-12-09T08:43:04.2552991-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-09T08:43:04.2552991-08:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}