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": "d083dcc1-bf0a-4e46-9d3c-9d1120be51e5", "Asset": { "AssetId": "3c5c23b8-1794-4a2d-90f6-aa603429f8aa", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "a199bf18-46ea-40ea-b0e6-0296a48fb0e6", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "bd3ce3f6-fcf4-4af8-88cb-fabc73fa5d9e", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "a9bf7fb1-fd9d-4a46-99c3-5082663c79ac", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-10-13T15:26:29.5303248-07:00", "MeasurementValueNeededDate": "2025-10-13T15:26:29.5303248-07:00", "SourceSystemId": "sample string 3", "CompanyId": "9da25c2c-83d3-498c-ba9d-6b6f55ac470b", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "541d9228-8d5a-47e9-965d-e212ee20a7e0", "EffectiveDate": "2025-10-13T15:26:29.5303248-07:00", "StatusType": { "StatusTypeId": "4fbe38b4-af93-4066-8513-9fe220b9ccde", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "a199bf18-46ea-40ea-b0e6-0296a48fb0e6", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "bd3ce3f6-fcf4-4af8-88cb-fabc73fa5d9e", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "3babcead-19db-495b-a7fb-aaabf528fc93", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "af8e4575-5592-4b9f-81fe-677eb3f533d2", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "885b5509-2417-4937-81f7-d84c768f2921", "EffectiveDate": "2025-10-13T15:26:29.5303248-07:00", "WellPurposeType": { "WellPurposeTypeId": "b1bf4ed6-9cda-4186-a10f-1f939df8c1ff", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "177bf65f-63c2-4b4e-9b8d-b1f6b9cbea59", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "fd445891-394d-4d23-8788-ab68de321100", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-10-13T15:26:29.5303248-07:00", "MeasurementValueNeededDate": "2025-10-13T15:26:29.5303248-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "e6eed6fb-99db-4fd2-902e-28a696a20e74", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-10-13T15:26:29.5303248-07:00", "StateType": { "StateTypeId": "bc1e7773-eefb-4c45-820d-c5d1d366b397", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "a199bf18-46ea-40ea-b0e6-0296a48fb0e6", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "bd3ce3f6-fcf4-4af8-88cb-fabc73fa5d9e", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "225d53f7-f039-49e5-b5fb-7ac1c5e5c0a6", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "d83745f6-038d-407f-b2dc-582daedb2e28", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:26:29.5303248-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": "0abd5758-e3de-460b-b63d-169eb7ebf4af", "Asset": { "AssetId": "074c1966-6ac7-405f-b440-e188ea726733", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "c93e887a-ee52-4f6d-9302-488f6020b125", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "38e49f2f-f0c9-44e5-8cde-12ac5ccfc065", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "b8fffded-7c07-4afb-803a-9d152b7cdb1e", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-10-13T15:26:29.5303248-07:00", "MeasurementValueNeededDate": "2025-10-13T15:26:29.5303248-07:00", "SourceSystemId": "sample string 3", "CompanyId": "a366e39e-001e-43c6-9019-d35e832d86be", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "33fe29fd-5ea8-4ce0-8cc2-d59dc5173337", "EffectiveDate": "2025-10-13T15:26:29.5303248-07:00", "StatusType": { "StatusTypeId": "bffb46b8-53f5-4657-bdd2-c98c380775b7", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "c93e887a-ee52-4f6d-9302-488f6020b125", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "38e49f2f-f0c9-44e5-8cde-12ac5ccfc065", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "f0bef395-66ae-4bb2-a446-8756297ff030", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "0188f03a-ff83-4f6e-a0b2-dd8b291911f1", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "c68973d5-d2b6-4fae-8b6d-bfa7a227dc6b", "EffectiveDate": "2025-10-13T15:26:29.5303248-07:00", "WellPurposeType": { "WellPurposeTypeId": "4b6244a2-c00d-4ff8-85e6-627fcc756467", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "d13d511a-489c-4bd3-b0e2-195d4559bc92", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "4a20c0ff-b6f9-4c34-ad98-2380b0477083", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-10-13T15:26:29.5303248-07:00", "MeasurementValueNeededDate": "2025-10-13T15:26:29.5303248-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "8a3453cb-f377-4789-9a14-0bc1c010d283", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-10-13T15:26:29.5303248-07:00", "StateType": { "StateTypeId": "4bf879fa-ba0f-4bbf-88ec-9a2cafaee4a6", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "c93e887a-ee52-4f6d-9302-488f6020b125", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "38e49f2f-f0c9-44e5-8cde-12ac5ccfc065", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "bfa23029-4bde-4527-a612-a6fb072e88e4", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "613abaea-aea3-4e6c-81fa-63f75d3e5483", "CreateDate": "2025-10-13T15:26:29.5303248-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:26:29.5303248-07:00", "LastModifiedUser": "sample string 4" }, "Total": 1, "Message": "sample string 1" }