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": "17020a53-20db-42b0-88d4-bb85e50f2f61", "Asset": { "AssetId": "f10547a1-e1ed-4efd-b8d2-edc0672182da", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "40abba6c-12fe-4014-9842-11e6fdc1c210", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b0fba44e-6794-4f46-b3d1-636451a1547f", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "edf4075b-a3dc-4ff2-9e94-82e7d7a71de0", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-18T18:17:37.7622691-07:00", "MeasurementValueNeededDate": "2025-09-18T18:17:37.7622691-07:00", "SourceSystemId": "sample string 3", "CompanyId": "2fcb694c-5656-4866-b2ac-2f9559dc042e", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "f612e2c4-0b45-42b8-9779-1a09f52e937f", "EffectiveDate": "2025-09-18T18:17:37.7622691-07:00", "StatusType": { "StatusTypeId": "191c16fa-350b-4ff1-b3f3-3daa2ad7d2f9", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "40abba6c-12fe-4014-9842-11e6fdc1c210", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b0fba44e-6794-4f46-b3d1-636451a1547f", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "894ac586-faf1-45b0-899e-4230767ff053", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "65c075eb-5f73-4093-80a2-da9ffc4779b3", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "26a05fcb-2a4f-4682-89ae-46b6ed64d66a", "EffectiveDate": "2025-09-18T18:17:37.7622691-07:00", "WellPurposeType": { "WellPurposeTypeId": "c8d07a55-92ad-4b65-bf69-865a370f0ac3", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "5a5321e3-83c8-4c1a-acde-620d69d63191", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "d4c61bc1-acd5-4561-b226-48420d395a3f", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-09-18T18:17:37.7622691-07:00", "MeasurementValueNeededDate": "2025-09-18T18:17:37.7622691-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "e2c986cc-a696-4bfc-8703-ed5da1368ff9", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-09-18T18:17:37.7622691-07:00", "StateType": { "StateTypeId": "b2f38415-9047-4adf-bb12-a26b94b96382", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "40abba6c-12fe-4014-9842-11e6fdc1c210", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b0fba44e-6794-4f46-b3d1-636451a1547f", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "9e6c3cf1-92b5-4231-b350-15f661641541", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "2d52ae50-0382-4e8e-99d9-ffd47b5e6d75", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-18T18:17:37.7622691-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": "7417a598-ef46-4c53-bf23-fd7573b3ce3e", "Asset": { "AssetId": "a7d30883-2875-48fa-9a6d-18e04b2e6805", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "2794e94b-a4b9-4ba2-bb21-ef181c4763bf", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "6987bc47-cb6d-4edf-a816-2e44eb87d510", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "4fddfc50-85be-43a8-ad4c-20c3a3df1668", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-18T18:17:37.7622691-07:00", "MeasurementValueNeededDate": "2025-09-18T18:17:37.7622691-07:00", "SourceSystemId": "sample string 3", "CompanyId": "71048649-5acc-49ad-9e60-58e19e6bbfaf", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "01b6e2dc-6be6-45e7-973a-f228a9db7319", "EffectiveDate": "2025-09-18T18:17:37.7622691-07:00", "StatusType": { "StatusTypeId": "4a5486f4-060b-4460-8eb5-70d3ce778912", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "2794e94b-a4b9-4ba2-bb21-ef181c4763bf", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "6987bc47-cb6d-4edf-a816-2e44eb87d510", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "620a229b-ca7f-4e1d-9362-cf34218cf6f9", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "2b047dd2-08a0-45de-a683-66d18cf44c4f", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "55b5cb32-e428-47d2-85d7-0aafb0700ccf", "EffectiveDate": "2025-09-18T18:17:37.7622691-07:00", "WellPurposeType": { "WellPurposeTypeId": "651c15c2-14e1-4498-8472-dd03cfe9296f", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "719119f3-07b7-4032-962d-75d9c65e73d3", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "9a32662f-3b6d-4520-9857-db6ae8f78ff9", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-09-18T18:17:37.7622691-07:00", "MeasurementValueNeededDate": "2025-09-18T18:17:37.7622691-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "f303a737-f94e-4827-95d5-ba63f2988161", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-09-18T18:17:37.7622691-07:00", "StateType": { "StateTypeId": "3755f82e-62cf-43d2-a21a-ae32a8cd0e88", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "2794e94b-a4b9-4ba2-bb21-ef181c4763bf", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "6987bc47-cb6d-4edf-a816-2e44eb87d510", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "f579fb69-027c-4371-b6a4-d5cb8ce31cfd", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "8203a7aa-6410-4888-8676-15892b62594c", "CreateDate": "2025-09-18T18:17:37.7622691-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-18T18:17:37.7622691-07:00", "LastModifiedUser": "sample string 4" }, "Total": 1, "Message": "sample string 1" }