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": "b1f6c7e2-4a42-4015-b36e-6aad093204a7", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "5dc7fe0f-c12e-48b2-913e-cec8bbd30c0a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "106059f1-9d24-40ae-b3c1-3449e00687d9", "CreateDate": "2025-06-02T14:48:03.1810608-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:48:03.1810608-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "345f2a66-d4e7-491e-8a2f-52f60261dd1f", "CreateDate": "2025-06-02T14:48:03.1810608-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:48:03.1810608-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": "4898eaae-6f14-4757-abd6-51c452c6e5c3", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "f63a94a0-85de-4669-bdf8-5b885d912751", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "2fc81df4-aea7-4859-8452-cafee6e5fee6", "CreateDate": "2025-06-02T14:48:03.1810608-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:48:03.1810608-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "2099f34e-04e2-4e3a-9495-172a0dba1c69", "CreateDate": "2025-06-02T14:48:03.1810608-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:48:03.1810608-07:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }