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": "c0f3faa8-263c-4991-af67-8dfb0c7bcf76", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "9b746a85-a3f3-49eb-981b-272d706dcd5e", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "141ccfaf-a530-4961-804f-f2c812a72e12", "CreateDate": "2025-05-17T05:16:59.9588969-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-17T05:16:59.9588969-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "3ea7b192-b280-4ed1-8624-50cb2b7f9009", "Name": "sample string 1" }, "Unit": { "UnitId": "c9aaa1ad-4e4a-4d5a-b50d-5d5121ee2047", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "561c57b4-431a-4a17-b145-c31745c5a119", "CreateDate": "2025-05-17T05:16:59.9588969-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-17T05:16:59.9588969-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": "966c73c9-6755-4f43-8852-e1fb0adedefe", "CreateDate": "2025-05-17T05:16:59.9588969-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-17T05:16:59.9588969-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": "33e537fc-9846-4705-9ba3-74eb94409d95", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "2546eec8-7d86-4433-8ba3-554446fcffe8", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "66b417ab-730a-42ec-bf20-7a613bf66e40", "CreateDate": "2025-05-17T05:16:59.9588969-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-17T05:16:59.9588969-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "e8adf6ac-297a-4a1d-b4bf-f82bdb9fe577", "Name": "sample string 1" }, "Unit": { "UnitId": "50e91243-26df-4748-90de-0d220ce64c67", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "6f8262c0-0f6b-4924-b5ba-52acd837e156", "CreateDate": "2025-05-17T05:16:59.9588969-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-17T05:16:59.9588969-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": "612e77ff-254d-4a3b-96cb-a15c46822ac8", "CreateDate": "2025-05-17T05:16:59.9588969-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-17T05:16:59.9588969-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }