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": "6b7ad210-50fc-4255-9ada-bc1981eb0b7b", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "32eb9253-ced5-4bde-8d9a-4ecab70fa476", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "548b2ea6-33b0-4dca-99c3-4bc0e1fc35d7", "CreateDate": "2025-07-18T14:22:27.8271102-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-18T14:22:27.8271102-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "2bb51baf-242e-4365-9a08-7c51f1d9d16d", "CreateDate": "2025-07-18T14:22:27.8271102-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-18T14:22:27.8271102-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": "333a85a1-4007-4ccd-8361-03e057fda97e", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "481d895e-49ce-4a94-860e-e2d3b93871b2", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "817116b6-0301-4744-9122-a3c17d1e69f7", "CreateDate": "2025-07-18T14:22:27.8271102-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-18T14:22:27.8271102-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "29361e2f-173b-4b0c-8ded-cc3d74704c82", "CreateDate": "2025-07-18T14:22:27.8271102-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-18T14:22:27.8271102-07:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }