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": "7e9bfb41-3823-4dec-96d7-5244f4a64fe3", "Asset": { "AssetId": "ab097623-7fec-4c16-b39e-9c4b9be9c476", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "b538fa38-b1d7-4bc2-9169-526ec80da484", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "af69aac5-3de6-47da-9e8e-9ad13c6e22d6", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "2a040d07-9558-4d72-8612-35828a39c953", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-01-02T11:08:35.7329813-08:00", "MeasurementValueNeededDate": "2025-01-02T11:08:35.7329813-08:00", "SourceSystemId": "sample string 3", "CompanyId": "7fe559ad-152f-42f5-8754-da72846c75d9", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "d28afde8-8e15-4eab-b88e-5c29fcc6073f", "EffectiveDate": "2025-01-02T11:08:35.7329813-08:00", "StatusType": { "StatusTypeId": "4e36024c-aefc-416d-b7e8-ae2f490a6907", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "b538fa38-b1d7-4bc2-9169-526ec80da484", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "af69aac5-3de6-47da-9e8e-9ad13c6e22d6", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "9d81c9f9-4cc2-4d3a-8d58-b23da621e264", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "a36f4f75-a827-493d-88d4-1d2c8bed7e21", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "8a632bc9-fd09-4e84-a137-ac868b4dc2b6", "EffectiveDate": "2025-01-02T11:08:35.7329813-08:00", "WellPurposeType": { "WellPurposeTypeId": "a331a34d-1290-4612-bb06-16ed46888879", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "87b8f9a5-39b5-4c6b-9953-fe2c33b05abe", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "361d2dc3-5bfb-4769-8cf3-0e3292704817", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-01-02T11:08:35.7329813-08:00", "MeasurementValueNeededDate": "2025-01-02T11:08:35.7329813-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "077ffd81-4507-4e6a-a72c-7af62a6e6bbf", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-01-02T11:08:35.7329813-08:00", "StateType": { "StateTypeId": "a5832d40-41ab-44ce-913c-a7eccd73e36e", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "b538fa38-b1d7-4bc2-9169-526ec80da484", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "af69aac5-3de6-47da-9e8e-9ad13c6e22d6", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "785135a3-0a42-47ae-8ea2-6a2f2243e58c", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "2ac51776-03ed-4002-8100-7280cfc88d35", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:08:35.7329813-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": "6cdbaae1-796a-447d-8299-4d7baf7869aa", "Asset": { "AssetId": "5cf8394f-239b-4767-a7db-298ed8192671", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "5f50617f-46fc-4038-9ed2-188fabd7c48a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ff9db771-413e-4022-954b-762332af1f79", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "dfbff8a8-0c5e-4403-a5be-ca2eac37b7e2", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-01-02T11:08:35.7329813-08:00", "MeasurementValueNeededDate": "2025-01-02T11:08:35.7329813-08:00", "SourceSystemId": "sample string 3", "CompanyId": "abf658d7-8665-40d6-855d-8304a496e02a", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "3a164d33-f3e0-4867-a3d3-da0fa1432759", "EffectiveDate": "2025-01-02T11:08:35.7329813-08:00", "StatusType": { "StatusTypeId": "deea152b-9eb9-49df-9784-ac2a018e09cd", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "5f50617f-46fc-4038-9ed2-188fabd7c48a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ff9db771-413e-4022-954b-762332af1f79", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "409e6213-cdf6-4af1-8cf9-3c294e4005b9", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "318a31ae-fe5c-4958-bc8c-69e67c18f77a", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "7a520622-dfb4-48b4-9454-fcf87b1d8b86", "EffectiveDate": "2025-01-02T11:08:35.7329813-08:00", "WellPurposeType": { "WellPurposeTypeId": "06a8506a-5bd4-43d0-ac72-eb344866530b", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "54efa156-cc1d-455d-b271-7b1254292200", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "c4232e6a-79e9-443b-95af-d9bb3f527fbe", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-01-02T11:08:35.7329813-08:00", "MeasurementValueNeededDate": "2025-01-02T11:08:35.7329813-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "984f3408-5c08-4ed8-9b9d-2ea0347906d5", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-01-02T11:08:35.7329813-08:00", "StateType": { "StateTypeId": "a7963673-7f77-4672-80b9-c10633f0780a", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "5f50617f-46fc-4038-9ed2-188fabd7c48a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ff9db771-413e-4022-954b-762332af1f79", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "8b187fbd-c32e-40c8-8a3c-d02b035f692d", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "b3ecf512-126d-44ea-a4c3-2b457af2e363", "CreateDate": "2025-01-02T11:08:35.7329813-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:08:35.7329813-08:00", "LastModifiedUser": "sample string 4" }, "Total": 1, "Message": "sample string 1" }