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": "5412fb7d-42ea-453b-8592-cafd0af6bd78", "Asset": { "AssetId": "58e3d64a-7b80-4c4b-82fe-11643663b564", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f2e763ac-0034-4849-b7bc-6b46f621651b", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "2eed0d41-897e-4e97-a096-0d044dac5fac", "CreateDate": "2025-05-08T15:51:51.4679544-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T15:51:51.4679544-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "1ee7f656-f266-45fe-91a9-f2eea14bbe5a", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-08T15:51:51.4679544-07:00", "MeasurementValueNeededDate": "2025-05-08T15:51:51.4679544-07:00", "SourceSystemId": "sample string 3", "CompanyId": "fab76fb8-74ff-41d7-baad-f95c65193b44", "CreateDate": "2025-05-08T15:51:51.4679544-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T15:51:51.4679544-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "d9e535a6-4fdb-46cb-a308-14401ad97123", "EffectiveDate": "2025-05-08T15:51:51.4679544-07:00", "StatusType": { "StatusTypeId": "4e96c7f6-f6a6-4c3b-8ae0-dd09b1cc1ed4", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "f2e763ac-0034-4849-b7bc-6b46f621651b", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "2eed0d41-897e-4e97-a096-0d044dac5fac", "CreateDate": "2025-05-08T15:51:51.4679544-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T15:51:51.4679544-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "b8301941-b9af-4aea-9350-9d5224438fcb", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "ded22bed-f9f1-478c-b9ec-1784db5ab6ab", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "ba422acb-85b0-4e63-a9be-9e9c37825e58", "EffectiveDate": "2025-05-08T15:51:51.4835705-07:00", "WellPurposeType": { "WellPurposeTypeId": "681c4750-93ab-4bfc-92a6-105d1a15e75a", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "b0c0ef62-8f79-46b1-897a-ed9fc468cb96", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "563de866-d418-4709-b730-aaafce3198f2", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-05-08T15:51:51.4835705-07:00", "MeasurementValueNeededDate": "2025-05-08T15:51:51.4835705-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "5dd2bc10-2e73-44bc-8e80-92d6c2e8fe6e", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-05-08T15:51:51.4835705-07:00", "StateType": { "StateTypeId": "0a2b4adb-988d-4995-b1a7-d11aa750ffcc", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "f2e763ac-0034-4849-b7bc-6b46f621651b", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "2eed0d41-897e-4e97-a096-0d044dac5fac", "CreateDate": "2025-05-08T15:51:51.4679544-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T15:51:51.4679544-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "5501c064-6eda-4481-bc87-5d0acc572d95", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "1fc131fa-9c6e-4fc2-9314-15c064cdaf83", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T15:51:51.4835705-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": "dc837ece-c55e-440a-9a9f-be464396810c", "Asset": { "AssetId": "5eccdd04-351c-4642-8b9b-6c27686d5d60", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "d067486f-645f-4cc4-838a-04a35a33c345", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "74dfc90c-5021-4b07-badf-c43fa528db73", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "cb112355-66f9-4058-8551-11f19f6577c5", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-08T15:51:51.4835705-07:00", "MeasurementValueNeededDate": "2025-05-08T15:51:51.4835705-07:00", "SourceSystemId": "sample string 3", "CompanyId": "c6301dfe-7af0-4d71-8d46-8dd43de61e51", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "Status": { "StatusId": "980009a6-6911-46ae-b170-3e33d21ca935", "EffectiveDate": "2025-05-08T15:51:51.4835705-07:00", "StatusType": { "StatusTypeId": "790e1ef7-44b9-499a-ba81-07dd3ff7deb6", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "d067486f-645f-4cc4-838a-04a35a33c345", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "74dfc90c-5021-4b07-badf-c43fa528db73", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "591a1cd0-fc70-41b3-88d6-934a083bd335", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "7c9132fd-b21c-4ace-a4ad-09fe2d2fed1f", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "e6e98c6a-892d-4c72-80de-e454f903ee09", "EffectiveDate": "2025-05-08T15:51:51.4835705-07:00", "WellPurposeType": { "WellPurposeTypeId": "5bf37fad-44a7-43b4-ab69-6ca95a0ae9b0", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "b8ef7b65-e2ad-4d6d-b80b-980861159382", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "9f54004e-bc93-4e7a-b668-b8905a726271", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-05-08T15:51:51.4835705-07:00", "MeasurementValueNeededDate": "2025-05-08T15:51:51.4835705-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "35797c79-13b2-45c8-ba60-646096e852ee", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 8" }, "EffectiveDate": "2025-05-08T15:51:51.4835705-07:00", "StateType": { "StateTypeId": "984619e7-1e52-4e8f-8450-ddb15d5f7541", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "d067486f-645f-4cc4-838a-04a35a33c345", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "74dfc90c-5021-4b07-badf-c43fa528db73", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "70a7da5a-a910-49a2-9be3-31199954ae99", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "1be9d830-ae78-4546-8aa3-c136cbba74cc", "CreateDate": "2025-05-08T15:51:51.4835705-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T15:51:51.4835705-07:00", "LastModifiedUser": "sample string 4" }, "Total": 1, "Message": "sample string 1" }