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": "935614fa-1241-4a59-9ac9-e0ded3bebf94", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "463c4d87-ae02-4d7c-81ff-d6f5fbde3c10", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "188ae6c0-b2da-4071-a90a-93bc56969525", "CreateDate": "2025-08-30T12:53:54.4885792-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T12:53:54.4885792-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "f27f3bbb-84ff-4e0c-a9ce-9e1fa8a57ba7", "Name": "sample string 1" }, "Unit": { "UnitId": "e711546c-23c3-44cd-840f-76a822a9919f", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "faef7166-80d7-474c-bac6-0089312dfd07", "CreateDate": "2025-08-30T12:53:54.4885792-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-30T12:53:54.4885792-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": "65eadd2c-e399-4a48-b428-020f7457d2f8", "CreateDate": "2025-08-30T12:53:54.4885792-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T12:53:54.4885792-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": "7d7c24fe-4ec0-4aba-9acd-e69f66dfc181", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "f3c9c43e-7291-4d1e-af59-a7d8afcfef05", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a9467283-f161-4223-9fed-cefe95f14c4b", "CreateDate": "2025-08-30T12:53:54.4885792-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T12:53:54.4885792-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "e313294b-bafe-4b6f-a262-8ac245faf0f6", "Name": "sample string 1" }, "Unit": { "UnitId": "406f87a7-11c6-4341-ad61-d98f333c670d", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "9dbf5915-8596-467c-9eaf-7c899b3e06c7", "CreateDate": "2025-08-30T12:53:54.4885792-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-30T12:53:54.4885792-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": "fc0dcb95-f745-406b-a7b8-6a73ffb94466", "CreateDate": "2025-08-30T12:53:54.4885792-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T12:53:54.4885792-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }