POST PropertyTypes
Creates a new property type.
Request Information
URI Parameters
None.
Body Parameters
Property type to create. PropertyTypeId should not be filled in.
PropertyTypeName | Description | Type | Additional information |
---|---|---|---|
PropertyTypeId | globally unique identifier |
None. |
|
Name | string |
None. |
|
Description | string |
None. |
|
AssetType | AssetType |
None. |
|
DataType | DataType |
None. |
|
Unit | Unit |
None. |
|
MinValue | decimal number |
None. |
|
MaxValue | decimal number |
None. |
|
MinLength | integer |
None. |
|
MaxLength | integer |
None. |
|
HasValidValues | boolean |
None. |
|
ValidValues | Collection of string |
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:
{ "PropertyTypeId": "6452e729-576a-48d1-b9ea-e40b34789cb9", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "edf34083-98fe-4678-81b0-4e62c66405ec", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "68ffdb7d-7c3b-4e0e-b37e-b20cf3fec2f4", "CreateDate": "2024-04-28T16:02:46.2127515-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T16:02:46.2127515-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "7e7c7811-a5bf-4747-be8c-f3bb31eebf92", "Name": "sample string 1" }, "Unit": { "UnitId": "b2abc7d6-6e21-4683-ac82-4bf6c9252ba7", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "8756c750-4af1-4743-8fb2-8329cacb0d61", "CreateDate": "2024-04-28T16:02:46.2127515-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-28T16:02:46.2127515-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ "sample string 1", "sample string 2" ], "SourceSystemId": "sample string 4", "CompanyId": "0c4fcaad-ce64-4051-a488-bf304d1a3aaf", "CreateDate": "2024-04-28T16:02:46.2127515-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-28T16:02:46.2127515-07:00", "LastModifiedUser": "sample string 7" }
Response Information
Resource Description
On success, the created property type.
Name | Description | Type | Additional information |
---|---|---|---|
Data | PropertyType |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "PropertyTypeId": "df90dc2f-0f6d-4521-bf95-2a71ae7ffbf9", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "8fd10062-5934-43cb-b6a4-0755488b8a06", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "09208a92-e8ea-43cc-8524-30867dcd0894", "CreateDate": "2024-04-28T16:02:46.2127515-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T16:02:46.2127515-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "44c0bb74-04c4-44a1-a198-3238184e0744", "Name": "sample string 1" }, "Unit": { "UnitId": "e140f098-9966-4e35-8dac-e40420d4e030", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "1186c18e-a1ef-47fd-8720-6de5bd54d252", "CreateDate": "2024-04-28T16:02:46.2127515-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-28T16:02:46.2127515-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ "sample string 1", "sample string 2" ], "SourceSystemId": "sample string 4", "CompanyId": "d23676df-4e53-4c2c-bae5-cc1e7ca8db61", "CreateDate": "2024-04-28T16:02:46.2127515-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-28T16:02:46.2127515-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }