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": "0c9af017-f044-401f-a445-a7bb03d511fa",
"Asset": {
"AssetId": "5c5a69f0-b36e-4278-b114-b0df2d8450f7",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "53c6ccf2-5c30-4ce8-aeeb-c127d91a6765",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b24af871-c34c-4fcc-b1e2-e939b7159009",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "cdb11c94-3128-46ca-89de-b78ac303fa9c",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-29T05:11:18.2679753-08:00",
"MeasurementValueNeededDate": "2025-11-29T05:11:18.2679753-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "34ddbe2b-9ccc-4504-9872-deb7ce9ce9fe",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "f4766689-80f9-4507-9e59-42aabbcf9beb",
"EffectiveDate": "2025-11-29T05:11:18.2679753-08:00",
"StatusType": {
"StatusTypeId": "2d7104cb-a6cb-40c6-bfdb-add0a6287a26",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "53c6ccf2-5c30-4ce8-aeeb-c127d91a6765",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b24af871-c34c-4fcc-b1e2-e939b7159009",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "c1ed6ddc-5b28-4bd0-9d86-84af4fde1f61",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "4c494125-e118-4b6d-8130-a58891b447ea",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "f8197e8c-c55f-4905-a921-c2077d2b3b39",
"EffectiveDate": "2025-11-29T05:11:18.2679753-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "4a1d9e3a-7993-4ff9-a472-c0424b12d8f9",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ebd70f86-a99c-4d55-ba91-645fa42eebc6",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "c7b0d510-d6b1-40b0-81cd-991adf1252e3",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-11-29T05:11:18.2679753-08:00",
"MeasurementValueNeededDate": "2025-11-29T05:11:18.2679753-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "119440b0-e3b3-440d-8ece-b76121e54e78",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2025-11-29T05:11:18.2679753-08:00",
"StateType": {
"StateTypeId": "8e0166a4-f218-48e8-b846-3356b1423bf1",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "53c6ccf2-5c30-4ce8-aeeb-c127d91a6765",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b24af871-c34c-4fcc-b1e2-e939b7159009",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "56cd4e83-baec-409a-be47-51ceaceea82a",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "c31439e8-02e1-4228-92f3-f8485e251f40",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-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": "39749137-debc-4947-b6c3-22b11df07857",
"Asset": {
"AssetId": "27094941-8821-405c-828e-273ca059f7b1",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "cc162526-f489-4973-b15d-5ef79f67362c",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "50107862-3909-4191-8754-ac2531a90667",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "29356f05-330e-4ce8-b834-960017fba933",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-29T05:11:18.2679753-08:00",
"MeasurementValueNeededDate": "2025-11-29T05:11:18.2679753-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "5ae4c14b-db0d-463f-b27a-1b434bb6f8db",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "923fb993-64c2-4f47-b5d9-ce2d7c86a3f0",
"EffectiveDate": "2025-11-29T05:11:18.2679753-08:00",
"StatusType": {
"StatusTypeId": "5d9b7b6f-1bdd-42ae-b9e5-cda363b68ab5",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "cc162526-f489-4973-b15d-5ef79f67362c",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "50107862-3909-4191-8754-ac2531a90667",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "8fde90a3-3690-4ab9-9f12-461ff5c5c071",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "89990508-d71d-4441-a57c-3b5d8a227511",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "17f57f94-4a29-42c7-91f8-f35f2facac5f",
"EffectiveDate": "2025-11-29T05:11:18.2679753-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "9df252e5-5563-46d5-a885-982d2c6023cb",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ebd5853b-2167-4b88-86dd-095c2c153b84",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "2d90722f-44b8-47f0-96fb-7644865ac7f7",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-11-29T05:11:18.2679753-08:00",
"MeasurementValueNeededDate": "2025-11-29T05:11:18.2679753-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "8cff5777-6a1b-465b-a2f9-ab48efe8c443",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2025-11-29T05:11:18.2679753-08:00",
"StateType": {
"StateTypeId": "6d04f2ff-4888-4e98-ac03-8eba4d2a44f9",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "cc162526-f489-4973-b15d-5ef79f67362c",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "50107862-3909-4191-8754-ac2531a90667",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "2379f316-5c41-4e3e-9771-7ff3abccac34",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "0f466abc-fd94-468a-a2cc-ecbff640ad90",
"CreateDate": "2025-11-29T05:11:18.2679753-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-29T05:11:18.2679753-08:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}