POST States
Creates a new state.
Request Information
URI Parameters
None.
Body Parameters
The state to create. StateId should not be filled in.
StateName | 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": "e5067996-8bc6-4f1f-b0b6-20eecf0bfd25", "Asset": { "AssetId": "c7d490ba-8432-46d2-91b0-8effc466860c", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "59bd6692-cc2d-4120-b48b-1612c18f69f8", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "e4462e66-e3db-497e-95d3-a3ceb48aeddc", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "654aed12-70fc-4773-8594-1c5e83c5ddaf", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-29T17:19:09.6313198-07:00", "MeasurementValueNeededDate": "2025-08-29T17:19:09.6313198-07:00", "SourceSystemId": "sample string 3", "CompanyId": "9a4c0d45-aa29-476b-ac42-9b8fd5275950", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "674f9c7f-4620-4b57-a457-0e4d30d18e2b", "EffectiveDate": "2025-08-29T17:19:09.6313198-07:00", "StatusType": { "StatusTypeId": "cbeb16ce-6943-4196-aab1-b9cfed8fb559", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "59bd6692-cc2d-4120-b48b-1612c18f69f8", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "e4462e66-e3db-497e-95d3-a3ceb48aeddc", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "be9438e5-8f69-42fa-9daa-c520dad1ea2d", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "24b4c1bf-67d6-451f-9bc3-9109704a3a48", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "39b65b35-b1f4-42fe-9b9b-ab20b570f9a1", "EffectiveDate": "2025-08-29T17:19:09.6313198-07:00", "WellPurposeType": { "WellPurposeTypeId": "d7efaa8b-f8e9-4c2c-af14-3997fdf6b69c", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "6aba2358-8ac2-4f0d-9229-1306c811480d", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "0b33bc97-f10a-4a84-be7c-344b3d34ddf9", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-08-29T17:19:09.6313198-07:00", "MeasurementValueNeededDate": "2025-08-29T17:19:09.6313198-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "fa14c5b7-c9e0-4999-b394-89717e5522f6", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-08-29T17:19:09.6313198-07:00", "StateType": { "StateTypeId": "c88cb9e4-9cba-46d3-8044-f5e1eaa69bfe", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "59bd6692-cc2d-4120-b48b-1612c18f69f8", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "e4462e66-e3db-497e-95d3-a3ceb48aeddc", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "3060545b-3289-463e-9b51-3d9cc94ff89c", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "c7bd597a-910a-417e-a685-ddcfaea11114", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.6313198-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": "6a36e6b5-317b-4fb2-b63b-22106af3726c", "Asset": { "AssetId": "a427974a-8a9c-4309-9cf9-23eaac0024ff", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "22e1971b-84b1-4392-ba55-77037d90d452", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0a147abd-c246-4711-bf07-b745465642f5", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "db9457d6-aac8-4139-bf6f-069638ee28b1", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-29T17:19:09.6313198-07:00", "MeasurementValueNeededDate": "2025-08-29T17:19:09.6313198-07:00", "SourceSystemId": "sample string 3", "CompanyId": "b344a71a-7d93-49aa-a00f-f04ac7fbbef8", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "28b481f3-eebc-45f5-9ea4-2dc33453234c", "EffectiveDate": "2025-08-29T17:19:09.6313198-07:00", "StatusType": { "StatusTypeId": "9180ed9b-0ee3-46c5-ba32-b2bad3a42df9", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "22e1971b-84b1-4392-ba55-77037d90d452", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0a147abd-c246-4711-bf07-b745465642f5", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "7d2847f8-fe6b-4a4b-b3fb-0c5d213ff6d2", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "9dc0f642-b9d9-4574-a706-86501510d8ec", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "eb8aa5f4-bba9-498a-9b77-2bc514c680cd", "EffectiveDate": "2025-08-29T17:19:09.6313198-07:00", "WellPurposeType": { "WellPurposeTypeId": "cdbc078b-d586-4c99-8269-27449f59f8b2", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "d8e1fe48-8f1a-4905-a441-f044c61d07df", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "94af187f-b43d-49d8-bd8f-f9547299cceb", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-08-29T17:19:09.6313198-07:00", "MeasurementValueNeededDate": "2025-08-29T17:19:09.6313198-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "c4cb777b-9627-4fde-b1e2-0d33bb6a76fe", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-08-29T17:19:09.6313198-07:00", "StateType": { "StateTypeId": "deeb6cb4-d060-4c6f-b83e-a1fddc92e9a2", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "22e1971b-84b1-4392-ba55-77037d90d452", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0a147abd-c246-4711-bf07-b745465642f5", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "2987c7f1-437d-4b36-ae7d-4921d11289c1", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "9ffc8046-9d37-43b2-aed8-650a8cb07f6d", "CreateDate": "2025-08-29T17:19:09.6313198-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.6313198-07:00", "LastModifiedUser": "sample string 4" }, "Total": 1, "Message": "sample string 1" }