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": "ad24e244-9a50-40f8-847b-3f52466be9a4",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "80e57925-dc94-45f4-b0c3-43d546bdf3e7",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "68f761b1-85d2-44b3-8d71-5d017e7db7eb",
"CreateDate": "2025-10-29T20:54:47.4665684-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-10-29T20:54:47.4665684-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "0fee8532-88e3-411b-8c51-963a2ce841aa",
"CreateDate": "2025-10-29T20:54:47.4665684-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-10-29T20:54:47.4665684-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": "5be0381a-54e9-4fe7-89d1-dd65d0486472",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "ffcb02c3-2644-4cc4-8d1d-efa4af8d6e1d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "a33a6039-aaea-440c-86b1-2da5c528c568",
"CreateDate": "2025-10-29T20:54:47.4665684-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-10-29T20:54:47.4665684-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "e896e5fc-cc56-40ac-b5e7-b6a835d077ca",
"CreateDate": "2025-10-29T20:54:47.4665684-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-10-29T20:54:47.4665684-07:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}