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": "7375ef97-f62b-4a88-b53f-446c72202388",
"Asset": {
"AssetId": "75e7a605-c946-4cc7-8afa-73a4154c1247",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "0b326b30-673c-4608-9f2f-5b75512245f0",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "c738363d-2901-4def-969b-0d3be1c46588",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "3614a556-f364-4987-8b3d-525530e2d327",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-30T09:57:25.7305396-08:00",
"MeasurementValueNeededDate": "2026-11-30T09:57:25.7305396-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "3a622a25-c0c1-4e4a-88ed-ff543e6163f7",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "6f42a6df-8f49-440d-9d47-aefcf5401213",
"EffectiveDate": "2026-11-30T09:57:25.7305396-08:00",
"StatusType": {
"StatusTypeId": "b309372b-99c2-4bfb-a93e-26ad0a53d790",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "0b326b30-673c-4608-9f2f-5b75512245f0",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "c738363d-2901-4def-969b-0d3be1c46588",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "59d35106-42f1-4980-972d-f374ea65249d",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "71a5c26a-e4ff-402d-aa7a-4c0cc9bfef9d",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "16ccee4d-79e9-4d13-b6de-d868233bcc23",
"EffectiveDate": "2026-11-30T09:57:25.7305396-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "567077ab-50b8-432d-93bc-e6a21f71f7b9",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "17caf02c-7ade-4841-92f4-0583822be6f5",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a288f325-8991-474e-8390-5a437b9a1b83",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-11-30T09:57:25.7305396-08:00",
"MeasurementValueNeededDate": "2026-11-30T09:57:25.7305396-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "5d648d10-1a63-43d6-a99c-c1b6e92d6cfb",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-11-30T09:57:25.7305396-08:00",
"StateType": {
"StateTypeId": "47a621a1-fd42-4d06-a811-592d420115b1",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "0b326b30-673c-4608-9f2f-5b75512245f0",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "c738363d-2901-4def-969b-0d3be1c46588",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "b550dbb8-2fbd-4983-9cee-ba0a76d199b8",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "4a2ffe4a-bf8a-44f3-ba3f-ddd2dfca2799",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-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": "07c8a8fc-974f-44bf-8e61-72cd5df73619",
"Asset": {
"AssetId": "81cfbd69-f3b2-406b-a86f-42da729794db",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "cf3f842d-8e63-413f-bb0b-2a2adc293a26",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "bbd3de7e-4ac1-40ed-87da-0e7187803cdb",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "faa882d4-fe7a-46f7-b91c-5f61a8850147",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-30T09:57:25.7305396-08:00",
"MeasurementValueNeededDate": "2026-11-30T09:57:25.7305396-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "c2558df7-7249-4eea-b70d-4c730e1cda96",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "b353e7f2-0342-4ae5-b4a4-ec3121e30f5a",
"EffectiveDate": "2026-11-30T09:57:25.7305396-08:00",
"StatusType": {
"StatusTypeId": "55d3f715-a841-4ab0-afea-bee8aef4dd38",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "cf3f842d-8e63-413f-bb0b-2a2adc293a26",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "bbd3de7e-4ac1-40ed-87da-0e7187803cdb",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "5b8b6024-08a1-49c8-8674-8fae174ee890",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "46ef9ea1-5718-468e-9ea6-b27d8348ed73",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "cd80df1e-305b-4ef1-98d7-13f65575e1d3",
"EffectiveDate": "2026-11-30T09:57:25.7305396-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "488aceab-2963-44e6-b5e1-6ea7136b4fee",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "d1c26483-a6d9-4c42-a627-440cca474a67",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "3ee1e3d5-cc32-427d-8031-73bf016b576f",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-11-30T09:57:25.7305396-08:00",
"MeasurementValueNeededDate": "2026-11-30T09:57:25.7305396-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "cddc1cf2-0890-4283-843c-3921736cab98",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2026-11-30T09:57:25.7305396-08:00",
"StateType": {
"StateTypeId": "b3413162-d89b-400f-9cf2-2feb8489bf61",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "cf3f842d-8e63-413f-bb0b-2a2adc293a26",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "bbd3de7e-4ac1-40ed-87da-0e7187803cdb",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "34c9a949-4a92-4dd4-b1af-7c28b3bf7a2a",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "2c3b1de5-3788-4e1a-91cd-b80f3df66066",
"CreateDate": "2026-11-30T09:57:25.7305396-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-30T09:57:25.7305396-08:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}