PUT States
Updates the given state.
Request Information
URI Parameters
None.
Body Parameters
The state to update
State| Name | 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": "ec10ed26-216d-4040-bed5-1da798012f48",
"Asset": {
"AssetId": "4bd8d7d3-afa6-4ddc-8ea7-4d52889afaa1",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "92e91dec-68f0-4f02-9517-696f6fdc017d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "33d5195b-a11d-4ae0-a7e3-2fe90f0e5590",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "9a283bca-aa18-4680-9b0a-4101f584464e",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-12T01:36:15.884261-08:00",
"MeasurementValueNeededDate": "2025-11-12T01:36:15.884261-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "b45e0454-f587-44ce-bb2a-c1f4aeae9407",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "1ce28abc-50f4-4342-8100-3d53417bbfb6",
"EffectiveDate": "2025-11-12T01:36:15.884261-08:00",
"StatusType": {
"StatusTypeId": "23151dcf-4b03-46b3-abdd-975469fd1574",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "92e91dec-68f0-4f02-9517-696f6fdc017d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "33d5195b-a11d-4ae0-a7e3-2fe90f0e5590",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "2b30bdf5-ac97-40a2-bf2d-b92c2abf0e33",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "0c638e46-c3d7-4034-b28a-79892d4b589d",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "7a0df887-9692-49bc-8c2c-0198f6067df8",
"EffectiveDate": "2025-11-12T01:36:15.884261-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "12bf94f5-45fe-4e89-85b1-8ddc50be9dae",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "5efe8c34-5d15-4967-b501-544cd73a2c11",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "d43d84c8-6468-413c-982e-39c025fb7555",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-11-12T01:36:15.884261-08:00",
"MeasurementValueNeededDate": "2025-11-12T01:36:15.884261-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "e08ea629-17d9-4298-aa6d-659772e9ef8a",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2025-11-12T01:36:15.884261-08:00",
"StateType": {
"StateTypeId": "9ec469e4-0ce6-4365-bbfc-96ead9958145",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "92e91dec-68f0-4f02-9517-696f6fdc017d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "33d5195b-a11d-4ae0-a7e3-2fe90f0e5590",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "8a695574-9bda-449b-b617-f1c7057bfd87",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "016ba84d-d254-498e-a791-dc1589388bc7",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08: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": "faed02f8-1327-41dc-968a-cdf2831f0bfa",
"Asset": {
"AssetId": "e484c5cd-5f29-459f-bb9e-00d5e81323eb",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "e5b58be9-827d-4b5b-8cd6-ea7a43bd7ab6",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b6c11bed-27bf-4bc7-9e7d-a368dc963672",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "48511e46-f736-4b92-a0f6-0dd78db21da7",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-12T01:36:15.884261-08:00",
"MeasurementValueNeededDate": "2025-11-12T01:36:15.884261-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "71cf8690-4dbe-4041-9916-c1f64eba91d9",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"Status": {
"StatusId": "bf96fce0-1b4a-4643-8cff-dfa4ec01c96e",
"EffectiveDate": "2025-11-12T01:36:15.884261-08:00",
"StatusType": {
"StatusTypeId": "77343f84-1edc-4990-9be8-e6204f9c8a81",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "e5b58be9-827d-4b5b-8cd6-ea7a43bd7ab6",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b6c11bed-27bf-4bc7-9e7d-a368dc963672",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "0d0141e3-de01-4de1-a6df-c620d3b26f3f",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "2140932d-239e-4cff-afa2-7b0920f8fcfd",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "18aebd33-18a4-4f66-8291-a7586b293979",
"EffectiveDate": "2025-11-12T01:36:15.884261-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "9b42464f-0008-466a-b428-2ff08076ce28",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "50342430-48b1-46e7-8270-419d650dc412",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "acc4bb5e-042d-43ed-b0fd-d03fbbbc9cbd",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-11-12T01:36:15.884261-08:00",
"MeasurementValueNeededDate": "2025-11-12T01:36:15.884261-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "b0495325-6606-4b35-9f0d-232991a580e8",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 8"
},
"EffectiveDate": "2025-11-12T01:36:15.884261-08:00",
"StateType": {
"StateTypeId": "3b6a6102-d243-4b50-a1e7-0ce77c179191",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "e5b58be9-827d-4b5b-8cd6-ea7a43bd7ab6",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b6c11bed-27bf-4bc7-9e7d-a368dc963672",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "45462082-36e4-41f2-bde5-ed2a3f7412bb",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "e2a08240-bf6e-4632-be3f-8368c17c2711",
"CreateDate": "2025-11-12T01:36:15.884261-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-12T01:36:15.884261-08:00",
"LastModifiedUser": "sample string 4"
},
"Total": 1,
"Message": "sample string 1"
}