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": "b5174873-f74b-4bdc-9a10-97379f77c1b5", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "e3f8f383-e38a-47ce-b9e6-b7d5d4a9f731", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "3d80264f-0443-4381-bb9d-74c56af60a8a", "CreateDate": "2025-02-05T06:15:53.2399848-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:15:53.2399848-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "b8c14f00-528e-4b5e-a6d1-cdd2a151f63c", "Name": "sample string 1" }, "Unit": { "UnitId": "65b0bbba-52a4-43df-b63f-28da637a86e6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "d41728c6-9626-463c-a5fa-14acbe1da099", "CreateDate": "2025-02-05T06:15:53.2399848-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-02-05T06:15:53.2399848-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "3551f140-fd0a-48c8-ab25-3c27f80ed541", "FieldId": "052514f0-556a-4eb6-914c-aafc7ca69ed8", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "3551f140-fd0a-48c8-ab25-3c27f80ed541", "FieldId": "052514f0-556a-4eb6-914c-aafc7ca69ed8", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "f5951827-b534-4679-af77-8aab8e8072fa", "CreateDate": "2025-02-05T06:15:53.2399848-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:15:53.2399848-08: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": "6aa83491-6b5a-4930-a0a3-be908a2089b5", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "3573d8e6-b241-4abf-ac18-07eb46047dd3", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "77edd024-847c-423e-9938-f07c19278c69", "CreateDate": "2025-02-05T06:15:53.2399848-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:15:53.2399848-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "1ce66eb0-afce-4a4c-b891-79cadfea8199", "Name": "sample string 1" }, "Unit": { "UnitId": "a30a8353-a130-4ceb-a715-309191bea56c", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "afacd294-a9a9-4685-8c28-040dcec452e9", "CreateDate": "2025-02-05T06:15:53.2399848-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-02-05T06:15:53.2399848-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "3ec72580-feef-47fe-b69a-ceb1a039b124", "FieldId": "320c649c-0d03-4db1-85e2-6a874a306a8e", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "3ec72580-feef-47fe-b69a-ceb1a039b124", "FieldId": "320c649c-0d03-4db1-85e2-6a874a306a8e", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "16dc2795-46bb-4c4d-b25f-17cb155e6519", "CreateDate": "2025-02-05T06:15:53.2399848-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:15:53.2399848-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }