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": "37dc98ce-c153-478a-9bbd-69b971403c4c",
"Asset": {
"AssetId": "39c2dc46-c87a-40e5-88c6-6ec0a1a0ecad",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "270ca385-fbb3-4fac-9765-3f5ef529ba9a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "dd71307d-219a-49ab-af1b-364dbd074153",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "a78ba95a-5522-4f21-9cda-fea8493b7757",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-07-27T00:13:16.6370151-07:00",
"MeasurementValueNeededDate": "2026-07-27T00:13:16.6370151-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "89a0c7c6-1cac-451e-a5f7-f42ac1a29b44",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "b42fed9c-8598-4998-9f5a-595074538865",
"EffectiveDate": "2026-07-27T00:13:16.6370151-07:00",
"StatusType": {
"StatusTypeId": "924df326-1b71-4c37-a3b7-0e5277b07c76",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "270ca385-fbb3-4fac-9765-3f5ef529ba9a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "dd71307d-219a-49ab-af1b-364dbd074153",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "e3eff358-6361-4660-ac74-2c3210311f67",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "4a709899-b483-468f-8c97-1fea96c4d5a7",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "eb7c9f51-74d7-45de-86dc-f46bc21531b3",
"EffectiveDate": "2026-07-27T00:13:16.6370151-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "3e2a298a-6519-4be0-b24e-fa59a83c232a",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "5c9b873a-936c-42c7-874e-6b4caf7f6a6a",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "372f3fba-8f39-4616-8687-8c3ecc9a63e8",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-07-27T00:13:16.6370151-07:00",
"MeasurementValueNeededDate": "2026-07-27T00:13:16.6370151-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "d1b4c6af-9e15-42a7-9bb3-388fdca017c3",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-07-27T00:13:16.6370151-07:00",
"StateType": {
"StateTypeId": "436f7b07-193e-4338-8bd9-12e013b18f72",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "270ca385-fbb3-4fac-9765-3f5ef529ba9a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "dd71307d-219a-49ab-af1b-364dbd074153",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "9c49b9d7-8943-4d3d-b9b6-440b6a66f838",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "77d582da-06aa-40c1-8924-e1d1c70f0545",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-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": "d8cbca9d-2d58-4c70-995f-cbebfab7046f",
"Asset": {
"AssetId": "4d8d56cb-36d0-4191-880a-84a4bbe0f9a5",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "112a1cad-7de4-489e-8ff1-952a0b716571",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0d837748-2ab1-4a28-873d-91bade2129f8",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "c3344542-3399-4efb-812f-ab14ab0548d1",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-07-27T00:13:16.6370151-07:00",
"MeasurementValueNeededDate": "2026-07-27T00:13:16.6370151-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "0f771d18-a99e-4bcd-af24-284d4bd5b4ce",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "371a6f78-155e-48a6-a7ac-7880842c23bf",
"EffectiveDate": "2026-07-27T00:13:16.6370151-07:00",
"StatusType": {
"StatusTypeId": "0dc514f8-72bd-4dba-b443-372e986dc690",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "112a1cad-7de4-489e-8ff1-952a0b716571",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0d837748-2ab1-4a28-873d-91bade2129f8",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "b9be2977-ce43-4e3b-a231-2290ccd15f0a",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "4c3f707b-274b-4f88-9747-deff408bbeb9",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "60eeb5d3-8a75-4467-932c-7dfe1f896179",
"EffectiveDate": "2026-07-27T00:13:16.6370151-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "32b5ec25-8ae9-4703-a62b-b7e0c88732b3",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "129c7828-5dad-4475-aa3f-cba572068e79",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a50a9f78-98e0-4202-9475-2bc392be2cad",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-07-27T00:13:16.6370151-07:00",
"MeasurementValueNeededDate": "2026-07-27T00:13:16.6370151-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "d33c5a2d-f145-4be9-9437-b93962edae7c",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-07-27T00:13:16.6370151-07:00",
"StateType": {
"StateTypeId": "58d53649-6b40-433b-be8b-efbcd46175f8",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "112a1cad-7de4-489e-8ff1-952a0b716571",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0d837748-2ab1-4a28-873d-91bade2129f8",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "516acda7-d15e-4252-a8e1-faeb589c660f",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "35798185-8c1c-4887-90cd-5650a03fca92",
"CreateDate": "2026-07-27T00:13:16.6370151-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-27T00:13:16.6370151-07:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}