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": "87daa4f1-99a1-4524-8f16-bb992a3457f7",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "69e2bdd5-2e07-4dcf-b805-2e5292e6bae8",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "7c49fba3-6be6-4804-9ebf-ae5f7fef3145",
"CreateDate": "2026-06-01T20:28:19.4377862-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-01T20:28:19.4377862-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "5372f5e9-fddd-4291-824d-f46ab0850307",
"CreateDate": "2026-06-01T20:28:19.4377862-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-01T20:28:19.4377862-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": "d56dd991-dc28-472c-8e4d-e6ca0aa631d2",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "fb3dfe3d-ede9-4e7b-8a62-b70aa3131f72",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "5dd0f685-d0bd-4c32-bb84-b826a02fb4f1",
"CreateDate": "2026-06-01T20:28:19.4377862-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-01T20:28:19.4377862-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "46a13b58-2dbf-4139-8d68-aaa0d283a421",
"CreateDate": "2026-06-01T20:28:19.4377862-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-01T20:28:19.4377862-07:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}