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": "d3df57d4-ebca-4621-94dd-1d67bfcde4c2", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "c519f96e-3569-47bf-9469-8825f61a5062", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "90536ec8-594e-4515-8d0d-f2b20abfd9fa", "CreateDate": "2024-11-21T05:30:21.2172671-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T05:30:21.2172671-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "b3152618-8f0b-4fc1-ac98-28f3bdc3ee3a", "CreateDate": "2024-11-21T05:30:21.2172671-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T05:30:21.2172671-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": "9ef04bdc-60ce-4cb4-b9c7-08dc6b3dd557", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "06006bd2-ab71-418a-acd0-4c2066dbd873", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "c9a3a792-6efe-4cfd-af04-bf10ecc4c8b8", "CreateDate": "2024-11-21T05:30:21.2172671-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T05:30:21.2172671-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "09d11847-06b5-4aa3-8d34-8640396e7350", "CreateDate": "2024-11-21T05:30:21.2172671-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T05:30:21.2172671-08:00", "LastModifiedUser": "sample string 6" }, "Total": 1, "Message": "sample string 1" }