PUT StateTypes

Updates the given state type.

Request Information

URI Parameters

None.

Body Parameters

State type to update

StateType
NameDescriptionTypeAdditional information
StateTypeId

globally unique identifier

None.

Name

string

None.

IsOperational

boolean

None.

AssetType

AssetType

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:
{
  "StateTypeId": "8e502392-9be1-4ab5-8a27-24cf795f91c6",
  "Name": "sample string 1",
  "IsOperational": true,
  "AssetType": {
    "AssetTypeId": "7ecf78e6-93b3-4ca7-b51b-117be0627c3c",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "IsWell": true,
    "DisplayColor": "sample string 4",
    "SourceSystemId": "sample string 5",
    "CompanyId": "188d9958-e60b-433c-b857-e6dd10fda5dd",
    "CreateDate": "2024-11-21T04:27:07.3851201-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-21T04:27:07.3851201-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "SourceSystemId": "sample string 3",
  "CompanyId": "d0071c66-f7fe-42cd-8d7d-ec77255cd65c",
  "CreateDate": "2024-11-21T04:27:07.3851201-08:00",
  "CreateUser": "sample string 5",
  "LastModifiedDate": "2024-11-21T04:27:07.3851201-08:00",
  "LastModifiedUser": "sample string 6"
}

Response Information

Resource Description

On success, the updated state type.

NameDescriptionTypeAdditional information
Data

StateType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "StateTypeId": "04681b8b-2a16-44cb-babe-17c4f1726b2c",
    "Name": "sample string 1",
    "IsOperational": true,
    "AssetType": {
      "AssetTypeId": "ab472c77-4a58-46c7-b3d7-9e9295ca9486",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "IsWell": true,
      "DisplayColor": "sample string 4",
      "SourceSystemId": "sample string 5",
      "CompanyId": "e17a9002-6d66-4ec6-8cb4-3275c654401f",
      "CreateDate": "2024-11-21T04:27:07.3851201-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-11-21T04:27:07.3851201-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "SourceSystemId": "sample string 3",
    "CompanyId": "322f9a91-19eb-4c7e-acf4-9c98c85fa930",
    "CreateDate": "2024-11-21T04:27:07.3851201-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-11-21T04:27:07.3851201-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "Total": 1,
  "Message": "sample string 1"
}