PUT States
Updates the given state.
Request Information
URI Parameters
None.
Body Parameters
The state to update
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": "10f6fe43-cb68-403f-9d42-adddf54b03bb", "Asset": { "AssetId": "830e73a6-157b-4b5c-b66e-fec88537a149", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "700cb30b-6c1a-4fa1-9ecb-c865eea90629", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7f0de5f8-df66-4a18-908e-251fce3c1f91", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "d401390f-55b0-4c60-aa5a-e6bac74b9c3c", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-29T17:19:09.3969044-07:00", "MeasurementValueNeededDate": "2025-08-29T17:19:09.3969044-07:00", "SourceSystemId": "sample string 3", "CompanyId": "8cf7a598-a0d8-412e-ada1-0e825913fa73", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "ddbd8c5a-fe22-45f7-b2d6-1df5cf1eb89d", "EffectiveDate": "2025-08-29T17:19:09.3969044-07:00", "StatusType": { "StatusTypeId": "557e64a7-a1e7-4abb-b193-3e970952eb23", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "700cb30b-6c1a-4fa1-9ecb-c865eea90629", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7f0de5f8-df66-4a18-908e-251fce3c1f91", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "61ef287e-8953-4485-9846-49ebc2fd2b7c", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "50f86338-dede-4f0f-a8cb-0f77f9f11d05", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "d1caf65b-e2ff-4cde-8e50-a9f6d4554ebd", "EffectiveDate": "2025-08-29T17:19:09.3969044-07:00", "WellPurposeType": { "WellPurposeTypeId": "637e46a8-6ce9-47cd-ae13-69dca0c637a5", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "ba16fbe0-254b-4d1f-b74a-37c4fa4417a6", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "eb4b4f2c-18e6-47b1-b91d-cf7de20970c6", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-08-29T17:19:09.3969044-07:00", "MeasurementValueNeededDate": "2025-08-29T17:19:09.3969044-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "9862f2fd-3292-46e4-a299-d32b3b825625", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-08-29T17:19:09.3969044-07:00", "StateType": { "StateTypeId": "e538224a-7fe3-4ba6-a510-19a954e8a554", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "700cb30b-6c1a-4fa1-9ecb-c865eea90629", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7f0de5f8-df66-4a18-908e-251fce3c1f91", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "ab9bd2f2-6486-4edc-b695-38c026eba918", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "cfa2b557-3a2a-4e35-a48b-22da4c8f77ef", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 4" }
Response Information
Resource Description
On success, the updated state.
Name | Description | Type | Additional information |
---|---|---|---|
Data | State |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "StateId": "08c0f866-7c8b-4031-bcbf-11f6d196c20c", "Asset": { "AssetId": "58fde05d-28e0-4655-b3b5-24d4d60ad915", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "28c24e22-f9b1-4389-bd8d-6077f9175230", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ed72e35d-e20c-48d7-944d-f75fe548158a", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "498f6f42-5070-4909-bcfb-5a7688e5e1cf", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-29T17:19:09.3969044-07:00", "MeasurementValueNeededDate": "2025-08-29T17:19:09.3969044-07:00", "SourceSystemId": "sample string 3", "CompanyId": "5fe9678a-9d33-4464-a919-7fd33236114f", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "0e7b5637-c6c0-4a9f-a40b-eeda4417e878", "EffectiveDate": "2025-08-29T17:19:09.3969044-07:00", "StatusType": { "StatusTypeId": "05cb3c45-fba0-46fc-ade9-453e198ac51d", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "28c24e22-f9b1-4389-bd8d-6077f9175230", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ed72e35d-e20c-48d7-944d-f75fe548158a", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "355dc37c-94fa-46b0-9dd9-11c635c3036d", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "73edd39a-8666-463c-b672-479093637b51", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "e9151626-ebc0-48e4-9fdc-f52365a748e0", "EffectiveDate": "2025-08-29T17:19:09.3969044-07:00", "WellPurposeType": { "WellPurposeTypeId": "d0344b1e-1ee8-4b5c-a42e-d9e43c82a2e9", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "b043f8bb-476b-41b0-8c97-e55081049a91", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "66faa858-c7d5-4414-b4b8-67e463b744f2", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-08-29T17:19:09.3969044-07:00", "MeasurementValueNeededDate": "2025-08-29T17:19:09.3969044-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "b437e0f5-d13f-4ba6-a214-98dd28399ec4", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-08-29T17:19:09.3969044-07:00", "StateType": { "StateTypeId": "73caeb0a-44c9-4f8f-bfdf-5c30d30e3890", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "28c24e22-f9b1-4389-bd8d-6077f9175230", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ed72e35d-e20c-48d7-944d-f75fe548158a", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "643c3439-a421-4582-a12d-b8ff146db72a", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "89631973-42df-4563-9080-95d84d597325", "CreateDate": "2025-08-29T17:19:09.3969044-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:19:09.3969044-07:00", "LastModifiedUser": "sample string 4" }, "Total": 1, "Message": "sample string 1" }