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": "20daf486-81d2-4fe7-ae1c-52e6b517e5ce",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "bae7cd4e-6ef4-4444-9170-bf90675aeb74",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "3ce01ca0-4d5b-4d62-abe5-3c90900e7f53",
"CreateDate": "2026-04-18T04:55:45.1497742-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-18T04:55:45.1497742-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "cdc01186-db24-4607-9b7c-2be7f33262fa",
"CreateDate": "2026-04-18T04:55:45.1497742-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-18T04:55:45.1497742-07: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": "d28da3fe-c8c8-4720-b67a-4044d4606f1f",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "9eed87ec-b695-4891-a8c1-9005c7adc9dd",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9c7eb6d3-723a-4c14-adfd-e45e260eb494",
"CreateDate": "2026-04-18T04:55:45.1497742-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-18T04:55:45.1497742-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "7c9fca87-13bc-4f32-aaf8-d092dc771f21",
"CreateDate": "2026-04-18T04:55:45.1497742-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-18T04:55:45.1497742-07:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}