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": "526ba808-4ea5-46a1-800c-7541dc3eefa1",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "af3dd3df-8215-4910-956d-196d74525e05",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "46af65a8-6539-4d82-9adc-5bc1ee4f1da0",
"CreateDate": "2026-09-26T11:29:41.604662-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-26T11:29:41.604662-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "f728348d-19a1-4129-ba74-4345cc911a71",
"CreateDate": "2026-09-26T11:29:41.604662-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-26T11:29:41.604662-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": "450e6654-a1fb-4798-92b5-2dfac7009b12",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "0071e74c-6402-402c-87d2-09f622a34bd0",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "bb209076-51f6-409e-bfda-2f1339341daf",
"CreateDate": "2026-09-26T11:29:41.604662-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-26T11:29:41.604662-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "3b4bdf99-95fd-4298-a232-fa0d06c5dd54",
"CreateDate": "2026-09-26T11:29:41.604662-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-26T11:29:41.604662-07:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}