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": "05328b1c-4e97-4291-b4ba-7915873d5c86",
"Asset": {
"AssetId": "26ae6814-24ed-4acf-9334-0067c5f69c1a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "6796f463-750a-4e0f-bd1e-a724989b6e68",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1302a5d7-6598-4ca0-b715-679b5ff9dd53",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "85f7552b-129a-450c-b1e4-705eae705859",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-28T03:26:11.7059414-07:00",
"MeasurementValueNeededDate": "2026-03-28T03:26:11.7059414-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "b270e7c5-37dc-48d1-9ed2-7266ac96b3d3",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "96b7afdd-4781-497e-b276-1b90835b82f6",
"EffectiveDate": "2026-03-28T03:26:11.7059414-07:00",
"StatusType": {
"StatusTypeId": "80788729-5806-43d4-ac8f-4fe59093ef78",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "6796f463-750a-4e0f-bd1e-a724989b6e68",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1302a5d7-6598-4ca0-b715-679b5ff9dd53",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "967d85c6-4008-4fa6-9fa0-10b982d13984",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "cee99fb0-9208-49d1-9293-0836bfa3943b",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "f7dbcb69-0c9b-4efa-a072-bb891f51b602",
"EffectiveDate": "2026-03-28T03:26:11.7059414-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "27c6f072-2435-4879-b111-29f087fc0f9b",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "8cd2a0cf-3748-41ec-ac99-84edb8dd5b99",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "23fda9fc-ade5-4d9f-a0cb-51bf5187f222",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-03-28T03:26:11.7059414-07:00",
"MeasurementValueNeededDate": "2026-03-28T03:26:11.7059414-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "ea454110-43d3-4320-bed1-8748852a8fec",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-03-28T03:26:11.7059414-07:00",
"StateType": {
"StateTypeId": "b7b54096-ab4c-4b4c-a928-62316f6e1138",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "6796f463-750a-4e0f-bd1e-a724989b6e68",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1302a5d7-6598-4ca0-b715-679b5ff9dd53",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "ae8d66e4-4722-47ca-99fb-e6a670f00e3d",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "eac77e57-dc68-4071-bf3e-7243c1299234",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-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": "eebb0951-f0c0-403d-aff3-41b136ba1fda",
"Asset": {
"AssetId": "330446c8-229f-49f0-bfae-33bfe825be4f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "9ffc0648-8933-4165-880c-ff36c122743a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "651dd204-426e-4b2c-ab41-27a80dc54b3d",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "bdb5f13b-a8ec-4681-8807-966838555a28",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-28T03:26:11.7059414-07:00",
"MeasurementValueNeededDate": "2026-03-28T03:26:11.7059414-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "bb5c3aa8-38b7-4379-aa1a-ba3e70d0f896",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "940b1c69-ca3d-41d9-9e00-f564ffeef30c",
"EffectiveDate": "2026-03-28T03:26:11.7059414-07:00",
"StatusType": {
"StatusTypeId": "1801af06-49cd-441a-b2f2-33e75099c2e2",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "9ffc0648-8933-4165-880c-ff36c122743a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "651dd204-426e-4b2c-ab41-27a80dc54b3d",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "9261aab2-125c-4027-9658-6f3da46ffbca",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "ad5a6636-4dfc-458b-8a36-fa613811a1ac",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "dcd71fd7-a8d0-4756-b7b7-24c9d28450a4",
"EffectiveDate": "2026-03-28T03:26:11.7059414-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "791978db-9d07-415e-ada3-9a9f2aa7a59b",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "f7f00ca4-ea1f-445a-a340-01fb029bd5a2",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "d7bb3e62-ca45-4c85-95bd-42996871834c",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-03-28T03:26:11.7059414-07:00",
"MeasurementValueNeededDate": "2026-03-28T03:26:11.7059414-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "d42f2636-f761-4434-be6d-a7de9735016d",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-03-28T03:26:11.7059414-07:00",
"StateType": {
"StateTypeId": "0ce9e286-c52e-4829-9179-c9633e7e43dd",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "9ffc0648-8933-4165-880c-ff36c122743a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "651dd204-426e-4b2c-ab41-27a80dc54b3d",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "62928eea-6957-48fb-a305-6793949ae94f",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "22b24657-56bf-44f8-9e26-89f56dac8b40",
"CreateDate": "2026-03-28T03:26:11.7059414-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-28T03:26:11.7059414-07:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}