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": "150e8bb9-4916-4b0f-8163-da689ee3720f", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "4c30f56d-a98f-4c9c-a036-3a639937ffa4", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "07c6cb1a-78de-4d82-b83f-a256cfedc050", "CreateDate": "2025-02-05T07:53:48.1750267-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T07:53:48.1750267-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "9b634ee1-6fbf-4c5d-be34-0574d83bcee9", "Name": "sample string 1" }, "Unit": { "UnitId": "a4551ce5-f3b7-4e6b-b6a4-dc0a0c2236ce", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "80437e41-be52-4d0b-8b49-5653b4a07559", "CreateDate": "2025-02-05T07:53:48.1750267-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-02-05T07:53:48.1750267-08: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": "8d737b70-3439-4784-bc12-5a2623df5d74", "CreateDate": "2025-02-05T07:53:48.1750267-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T07:53:48.1750267-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": "4dc21517-2233-4835-8879-168a47056f16", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "4ed11b45-127d-4f3a-a178-3008e1907a62", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "797f1467-a268-44f6-8af4-409b2a77a59c", "CreateDate": "2025-02-05T07:53:48.1750267-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T07:53:48.1750267-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "b90ed56a-91e2-480c-9d04-5415ad240945", "Name": "sample string 1" }, "Unit": { "UnitId": "c1789f96-1324-4c7e-855f-9b295a2d0d08", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "20019a75-59d1-4de4-8d59-d232d8cbd292", "CreateDate": "2025-02-05T07:53:48.1750267-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-02-05T07:53:48.1750267-08: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": "59540121-b6b3-48d3-ac93-c2b0cea3a752", "CreateDate": "2025-02-05T07:53:48.1750267-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T07:53:48.1750267-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }