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": "1e0890d9-0431-49ab-9338-223af1124fcd",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "f87e6165-f998-47b1-9c27-3bf3d2223c33",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "a08b5a43-1fc6-43dc-bf8e-82802abae66c",
"CreateDate": "2026-09-13T23:36:57.6585291-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T23:36:57.6585291-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "743f1a91-7fbb-4810-9bc1-dfb5aaf6ecec",
"CreateDate": "2026-09-13T23:36:57.6585291-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-13T23:36:57.6585291-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": "3328b096-bd64-4663-834c-5623d9e69e94",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "a29b4440-8648-43f0-9b84-eacd35db3e82",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "efd73df2-48ea-4b1c-b4ba-dd6046c2a71d",
"CreateDate": "2026-09-13T23:36:57.6585291-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T23:36:57.6585291-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "0387a8dc-3df9-4595-a9ef-b2c3af318f11",
"CreateDate": "2026-09-13T23:36:57.6585291-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-13T23:36:57.6585291-07:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}