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": "edff7bb5-dc1e-4ff6-b26c-f45ff580bdaf",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "a2a3db5e-bbba-4f4c-8235-56963cc8b7c4",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "38f1538b-32dc-42e3-ab04-e7576350fd7a",
"CreateDate": "2026-02-02T19:40:35.5744984-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-02T19:40:35.5744984-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "816ae5e1-50cc-4c7d-8aaf-b3071333f5d5",
"CreateDate": "2026-02-02T19:40:35.5744984-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-02T19:40:35.5744984-08: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": "3e22696c-dd07-4dbc-891f-0d425634c430",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "be011a01-b8e8-4732-b9cb-2521b961ce2c",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "a027fb8e-572b-4249-b1ff-5be5ed97b441",
"CreateDate": "2026-02-02T19:40:35.5744984-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-02T19:40:35.5744984-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "01f7efdc-ea38-4ba3-9147-466a72827294",
"CreateDate": "2026-02-02T19:40:35.5744984-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-02T19:40:35.5744984-08:00",
"LastModifiedUser": "sample string 6"
},
"Total": 1,
"Message": "sample string 1"
}