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": "a317a34a-581c-4836-b5a4-3b0753000304",
"Asset": {
"AssetId": "bfeca6e7-38a7-4966-b4f2-261a9661ae00",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "39f25893-5a9c-435d-8e10-b01e21575866",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "03217c90-2711-4e28-9667-0e83a300befe",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "4356cb74-6aee-49dc-be64-c3564c0bcc99",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-07-19T23:25:41.4038624-07:00",
"MeasurementValueNeededDate": "2026-07-19T23:25:41.4038624-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "655823ee-1652-472b-ab08-09d58a81d44b",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "43f035f9-644d-4207-b114-198e5ce35e9a",
"EffectiveDate": "2026-07-19T23:25:41.4038624-07:00",
"StatusType": {
"StatusTypeId": "7bd180e3-2fa8-4127-894c-c9226ab91387",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "39f25893-5a9c-435d-8e10-b01e21575866",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "03217c90-2711-4e28-9667-0e83a300befe",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "360aef69-33bd-4af7-9469-28a2449463ef",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "72ffc87f-c7b9-4066-86f4-1a95f3ab9255",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "74ec750f-66ef-4303-b541-0675998e9b99",
"EffectiveDate": "2026-07-19T23:25:41.4038624-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "d04c031b-4d7e-4e2b-bf31-e3aff7da2385",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "8faaaa24-9a55-4cf5-9d5f-4cac59ad16a5",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "0a15364f-45b3-49d0-b84e-f1d58d6439ef",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-07-19T23:25:41.4038624-07:00",
"MeasurementValueNeededDate": "2026-07-19T23:25:41.4038624-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "99e2b812-5e80-429f-8ab5-01b64efe57e8",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-07-19T23:25:41.4038624-07:00",
"StateType": {
"StateTypeId": "ddd68ff2-264f-45f9-8f20-710b7c135bdf",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "39f25893-5a9c-435d-8e10-b01e21575866",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "03217c90-2711-4e28-9667-0e83a300befe",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "645ba75b-622b-46b3-ab6e-bc148c28b40e",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "88244585-34c8-416d-b2fd-c3dea3311cca",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-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": "499ff717-af12-40cb-9c4b-7e5d1dbfb416",
"Asset": {
"AssetId": "351d9966-6a77-4004-934f-1c776d6ac6a0",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "446ba077-70c3-44e8-a283-382551aa026d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0a73fc57-cbd4-4189-9835-e3541cad9060",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "45fe37d4-776f-4244-9b10-a7d0658e287f",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-07-19T23:25:41.4038624-07:00",
"MeasurementValueNeededDate": "2026-07-19T23:25:41.4038624-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "5e52616e-f83d-43fe-a5cd-6d02f632f12b",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "0ef7910e-8a2f-4f20-8fe8-8254e582d885",
"EffectiveDate": "2026-07-19T23:25:41.4038624-07:00",
"StatusType": {
"StatusTypeId": "047e7c92-8c1e-4308-88f0-c3f8f8b8ebad",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "446ba077-70c3-44e8-a283-382551aa026d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0a73fc57-cbd4-4189-9835-e3541cad9060",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "e670c628-99c6-4ecd-98b3-0b4dc3c8dd0f",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "6fa0e079-ae5c-47a0-bed3-bf8ed44afb1e",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "8406d3ef-1751-4b1d-9e2c-083038b8d94c",
"EffectiveDate": "2026-07-19T23:25:41.4038624-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "32cc3b03-1431-41a0-b338-2bab7f6ffbb2",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "47412e7e-ea41-44ec-abd1-bc882d1d24be",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "4c60bd3d-bf2d-4304-914a-522fcbbecda5",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-07-19T23:25:41.4038624-07:00",
"MeasurementValueNeededDate": "2026-07-19T23:25:41.4038624-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "9fa2f8af-33be-4142-a1b4-b84a9147edb0",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-07-19T23:25:41.4038624-07:00",
"StateType": {
"StateTypeId": "2686917d-be8a-4089-830e-3a5f057acfaf",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "446ba077-70c3-44e8-a283-382551aa026d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0a73fc57-cbd4-4189-9835-e3541cad9060",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "d809321d-1dcd-4cbb-8f68-cb50458de59f",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "873b2f36-f032-4059-bb8b-6cad08b6a351",
"CreateDate": "2026-07-19T23:25:41.4038624-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-19T23:25:41.4038624-07:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}