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": "015a7d65-ea48-4c74-b47d-71c6046f6344", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "448c0976-dd38-4274-a368-24552eafc449", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "c7788f20-ab48-43fc-b625-95ce52bb02d1", "CreateDate": "2025-01-30T17:09:05.6604075-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T17:09:05.6604075-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "ce23eb07-8174-48db-b10d-d109a4dc1296", "CreateDate": "2025-01-30T17:09:05.6604075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T17:09:05.6604075-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": "9ed04f93-48a4-4a2e-ae47-ff98e0cd35c8", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "1e98d3a2-8623-42e0-9c81-9379466ce085", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "a2428bbf-5bc0-4ee9-9511-152711835eff", "CreateDate": "2025-01-30T17:09:05.6604075-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T17:09:05.6604075-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "97c51e31-0b8b-4a7a-a361-599fb03bc948", "CreateDate": "2025-01-30T17:09:05.6604075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T17:09:05.6604075-08:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }