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 ValidValue |
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": "c6751268-7e5a-4356-8897-c6bbe46b37db", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "53d6bfe2-bffa-4f54-8a4d-df0ef538b2ba", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "c8013872-37a3-47b1-8538-ac6ab0173beb", "CreateDate": "2025-07-30T11:52:46.6177052-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-30T11:52:46.6177052-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "3b0e4b1c-2dcd-4bfb-b21f-226ff20b2282", "Name": "sample string 1" }, "Unit": { "UnitId": "aa949444-bd15-46ae-9e2f-df09c394366c", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "7afcdbf7-4ed7-4318-a0e4-7a1adc749154", "CreateDate": "2025-07-30T11:52:46.6177052-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-30T11:52:46.6177052-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "d5ea86af-de78-4ef5-9939-88f83439ec10", "FieldId": "19dce600-c433-46b8-9ae4-44d142986373", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "d5ea86af-de78-4ef5-9939-88f83439ec10", "FieldId": "19dce600-c433-46b8-9ae4-44d142986373", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "e7fbcb55-bf90-4dbb-b9b5-d8af90821837", "CreateDate": "2025-07-30T11:52:46.6177052-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-30T11:52:46.6177052-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": "ec7ef6e8-8d82-4574-8fe0-6244d8c8e65a", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "c5e71e2f-b33e-4feb-99c3-e9833db2e282", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "61f8692e-7e75-431a-8cb4-e83d93a9e2e6", "CreateDate": "2025-07-30T11:52:46.6177052-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-30T11:52:46.6177052-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "5c61eb59-7cc4-4fa3-a043-d94d314eb918", "Name": "sample string 1" }, "Unit": { "UnitId": "976f627e-f5c6-4510-8f83-2b97875ea5ea", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "7b77fa02-cabe-44a9-b4f3-ee99e6425f1f", "CreateDate": "2025-07-30T11:52:46.6177052-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-30T11:52:46.6177052-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "59317113-cf3f-46db-a315-b44c377bb94d", "FieldId": "b9b4920b-5135-47b6-8e05-382e5be0b662", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "59317113-cf3f-46db-a315-b44c377bb94d", "FieldId": "b9b4920b-5135-47b6-8e05-382e5be0b662", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "b6296387-b609-4f17-964e-8383daed28e3", "CreateDate": "2025-07-30T11:52:46.6177052-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-30T11:52:46.6177052-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }