POST StateTypes
Creates a new state type.
Request Information
URI Parameters
None.
Body Parameters
State type to create. StateTypeId should not be filled in.
StateType| Name | Description | Type | Additional 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": "e20ec8a3-b8cf-4907-af7e-ab26da76d187",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "9b02deb3-c095-45c0-9018-0a017f7d973f",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "27c302c9-6b35-4b38-a608-43505ea4a111",
"CreateDate": "2025-11-17T18:53:03.7407144-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-17T18:53:03.7407144-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "d5a6b0c3-7ae4-4970-81bd-4f43085eeff3",
"CreateDate": "2025-11-17T18:53:03.7407144-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-17T18:53:03.7407144-08:00",
"LastModifiedUser": "sample string 6"
}
Response Information
Resource Description
On success, the created state type.
| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | StateType |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"StateTypeId": "823ff736-5fb7-4f20-83e0-5f4bacf86500",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "49e74ed9-501d-4fa1-ad7d-57285746ede7",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "87f822f4-f84a-4b5e-b880-406730d39c30",
"CreateDate": "2025-11-17T18:53:03.7563223-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-17T18:53:03.7563223-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "b34b2085-db8d-4c69-b991-3325839bb7e7",
"CreateDate": "2025-11-17T18:53:03.7563223-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-17T18:53:03.7563223-08:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}