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": "b028269d-5ac8-497c-aca6-3e9363686986", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "a6bbadd1-6973-4775-b2a1-7c812a8fe7c9", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4b86e953-048d-45aa-be39-a6e57f36160c", "CreateDate": "2025-08-29T17:13:15.4183149-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:13:15.4183149-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "d0835533-4461-4ad5-9ccd-76f4c18c544d", "CreateDate": "2025-08-29T17:13:15.4183149-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:13:15.4183149-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": "069d3c12-93ac-4c76-9685-9ab2d3f282fd", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "6af394cb-2f6c-420b-b701-a994d64ed329", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "3ff51127-5141-4ea3-be5f-7b0f91b66f8d", "CreateDate": "2025-08-29T17:13:15.4183149-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:13:15.4183149-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "477bd492-c835-4e1b-aad7-bd352291b5d1", "CreateDate": "2025-08-29T17:13:15.4183149-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:13:15.4183149-07:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }