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": "87c70ead-e8ca-4357-af32-2d974330ae44",
"Asset": {
"AssetId": "2738d8b4-5f37-4428-a2f7-7792544ac38c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "f7080e83-afb1-46a8-b0e8-8170be9bfa9e",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "bce56b12-3cd7-4cb0-b138-8cb2561db858",
"CreateDate": "2026-06-28T21:59:39.2942409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-28T21:59:39.2942409-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "d2cbee16-c120-463a-b64c-2013663cec4c",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-28T21:59:39.2942409-07:00",
"MeasurementValueNeededDate": "2026-06-28T21:59:39.2942409-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "ac790246-2a11-4244-bff0-97ca0019e58c",
"CreateDate": "2026-06-28T21:59:39.2942409-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-28T21:59:39.2942409-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "b19807b9-4d76-4a0f-b09e-7225da2d7fea",
"EffectiveDate": "2026-06-28T21:59:39.2942409-07:00",
"StatusType": {
"StatusTypeId": "b3f89dce-ab70-4719-be29-cf07a4a459e1",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "f7080e83-afb1-46a8-b0e8-8170be9bfa9e",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "bce56b12-3cd7-4cb0-b138-8cb2561db858",
"CreateDate": "2026-06-28T21:59:39.2942409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-28T21:59:39.2942409-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "9047d4c3-74ed-4fb7-ba08-b4132e8708f3",
"CreateDate": "2026-06-28T21:59:39.2942409-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-28T21:59:39.2942409-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "aa6645fc-72a9-4cc0-8397-82011347f5f5",
"CreateDate": "2026-06-28T21:59:39.2942409-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-28T21:59:39.2942409-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "233aee63-2bde-446c-9777-dd3581fa748c",
"EffectiveDate": "2026-06-28T21:59:39.2942409-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "2a017ff3-9a04-48ec-bbff-178dee443c01",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "122869f8-0763-405d-9cc8-39689f46ef27",
"CreateDate": "2026-06-28T21:59:39.2942409-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-28T21:59:39.2942409-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a0d23d8b-7dd2-4466-9259-a1800becb2eb",
"CreateDate": "2026-06-28T21:59:39.2942409-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-28T21:59:39.2942409-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-06-28T21:59:39.2942409-07:00",
"MeasurementValueNeededDate": "2026-06-28T21:59:39.2942409-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "9fd605a4-0759-4eae-b1f5-412dc29593ed",
"CreateDate": "2026-06-28T21:59:39.2942409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-28T21:59:39.2942409-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-06-28T21:59:39.2942409-07:00",
"StateType": {
"StateTypeId": "0a9620bf-dfd9-408e-9b18-05c6323bac22",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "f7080e83-afb1-46a8-b0e8-8170be9bfa9e",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "bce56b12-3cd7-4cb0-b138-8cb2561db858",
"CreateDate": "2026-06-28T21:59:39.2942409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-28T21:59:39.2942409-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "40df62b8-8528-4dbc-8cb5-6ee52087b8f3",
"CreateDate": "2026-06-28T21:59:39.2942409-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-28T21:59:39.2942409-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "afcd333b-2f5e-45b5-82d2-19224bffa703",
"CreateDate": "2026-06-28T21:59:39.2942409-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-28T21:59:39.2942409-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": "50c600c2-f51d-417a-a2ef-8fdef3d3ced8",
"Asset": {
"AssetId": "9ecada63-ce9f-4636-b8f6-4b4fc43f4a8d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "89e0c539-47b5-4bc5-8610-2b8fbf90130e",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "93043c7a-2556-4ea6-a720-c57d738d1ac5",
"CreateDate": "2026-06-28T21:59:39.3098655-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-28T21:59:39.3098655-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "2099da79-cc09-4d0b-9e16-9c917be77394",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-28T21:59:39.3098655-07:00",
"MeasurementValueNeededDate": "2026-06-28T21:59:39.3098655-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "a73da0ff-5dc1-4303-ac44-935883eaa059",
"CreateDate": "2026-06-28T21:59:39.3098655-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-28T21:59:39.3098655-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "47ce6530-9b74-452b-9d19-94bc5b868379",
"EffectiveDate": "2026-06-28T21:59:39.3098655-07:00",
"StatusType": {
"StatusTypeId": "ec465f60-77cd-4627-9c1f-7c5dfc762504",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "89e0c539-47b5-4bc5-8610-2b8fbf90130e",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "93043c7a-2556-4ea6-a720-c57d738d1ac5",
"CreateDate": "2026-06-28T21:59:39.3098655-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-28T21:59:39.3098655-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "59acf884-09cf-4c26-849d-01758057c160",
"CreateDate": "2026-06-28T21:59:39.3098655-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-28T21:59:39.3098655-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "4d8da5b0-c566-4b38-956f-a5e7b5558021",
"CreateDate": "2026-06-28T21:59:39.3098655-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-28T21:59:39.3098655-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "4f2d3bde-a0b1-4b65-8c99-275bb42d9f33",
"EffectiveDate": "2026-06-28T21:59:39.3098655-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "0d8146b1-2989-4d65-9bb4-0d9ff49ce0e0",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "d3d30836-ef25-45c1-bcf3-33be30293bfb",
"CreateDate": "2026-06-28T21:59:39.3098655-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-28T21:59:39.3098655-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "6014539d-9395-490e-8f4a-934bd9b9bda2",
"CreateDate": "2026-06-28T21:59:39.3098655-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-28T21:59:39.3098655-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-06-28T21:59:39.3098655-07:00",
"MeasurementValueNeededDate": "2026-06-28T21:59:39.3098655-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "e911e3fe-31a0-45af-bbfd-51f8f7d2e6b2",
"CreateDate": "2026-06-28T21:59:39.3098655-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-28T21:59:39.3098655-07:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-06-28T21:59:39.3098655-07:00",
"StateType": {
"StateTypeId": "db8ac93b-7176-4d6b-be70-02a6993ce90c",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "89e0c539-47b5-4bc5-8610-2b8fbf90130e",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "93043c7a-2556-4ea6-a720-c57d738d1ac5",
"CreateDate": "2026-06-28T21:59:39.3098655-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-28T21:59:39.3098655-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "4ad122fc-acfd-4d88-985f-0d20e6adbf36",
"CreateDate": "2026-06-28T21:59:39.3098655-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-28T21:59:39.3098655-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "c7d5ecbe-6b2b-4ead-8a1b-312226a89a2e",
"CreateDate": "2026-06-28T21:59:39.3098655-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-28T21:59:39.3098655-07:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}