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": "36d31605-d817-4648-bb53-42240e911a3e", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "59d7b5c4-d213-4a0c-b464-b64d2270cdc9", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "168a8566-cad9-4b91-ad67-c812b2360acd", "CreateDate": "2025-07-31T22:45:46.4007903-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T22:45:46.4007903-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "1044c9b8-b7ac-4a63-9463-1c7d16238a12", "Name": "sample string 1" }, "Unit": { "UnitId": "a82b9c2c-82eb-4110-9b6d-eb81e7b21937", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "bae434fe-64af-4cc8-b15a-58bc5598c998", "CreateDate": "2025-07-31T22:45:46.4007903-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-31T22:45:46.4007903-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": "b4c456aa-7d40-4d4e-aad8-a34eb463197a", "CreateDate": "2025-07-31T22:45:46.4007903-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T22:45:46.4007903-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": "5e7d1462-87dc-483e-88b5-ad134a28311d", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "0ab74b7a-c065-4aea-bfca-b7589a2a4904", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "d8a46791-9e37-4dc9-abce-89d8567408f6", "CreateDate": "2025-07-31T22:45:46.4007903-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T22:45:46.4007903-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "62662f86-1889-4666-94d5-172694627f78", "Name": "sample string 1" }, "Unit": { "UnitId": "bae5e84b-08c9-4fa7-9097-d2a2e46e9d63", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "a97ebdb2-e3a6-4af6-954d-3eb929857426", "CreateDate": "2025-07-31T22:45:46.4007903-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-31T22:45:46.4007903-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": "fcd5c7b5-2e56-48ae-ab30-1455ea7d1f21", "CreateDate": "2025-07-31T22:45:46.4007903-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T22:45:46.4007903-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }