POST StateTypes
Creates a new state type.
Request Information
URI Parameters
None.
Body Parameters
State type to create. StateTypeId should not be filled in.
StateTypeName | 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": "a7d6ae76-adbb-4200-832d-ef4ea7701fd3", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "7197b9cd-68b1-4cdc-8c93-ac6dfa7bb088", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "505e42f6-3acc-4a83-bed6-05e106cef3ff", "CreateDate": "2025-05-09T15:17:13.3234016-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:17:13.3234016-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "65b8ae3e-ae8c-4532-9d1f-a132022ec878", "CreateDate": "2025-05-09T15:17:13.3234016-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T15:17:13.3234016-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": "181f7fdf-a629-4dc4-965c-d0d68fc590ca", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "d9da1f19-019c-4f04-a352-3814b9b8a3c9", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "5f25ee9c-85af-4c81-8232-9615adb6004e", "CreateDate": "2025-05-09T15:17:13.3234016-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:17:13.3234016-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "f338813b-166a-408a-bd6d-a24fb3ce03a9", "CreateDate": "2025-05-09T15:17:13.3234016-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T15:17:13.3234016-07:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }