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": "588545c0-3e3f-4951-8ba1-cf472ca90119", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "ff4ccc5c-62f5-473d-b3af-ba5e03ed0f0c", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "55c347fc-1875-49ea-9499-4929bb2e3c11", "CreateDate": "2024-04-25T12:40:46.7938472-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-25T12:40:46.7938472-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "5549fc9d-3dfe-4891-8747-8837142f9eda", "Name": "sample string 1" }, "Unit": { "UnitId": "52b6037e-9071-4e42-b15d-540ca25bce9c", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "0b3196f3-d8b0-4655-85fc-5ec2700e688b", "CreateDate": "2024-04-25T12:40:46.7938472-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-25T12:40:46.7938472-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": "d866c2de-e9d7-4ce2-92a5-97769514d1d8", "CreateDate": "2024-04-25T12:40:46.7938472-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-25T12:40:46.7938472-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": "e794406e-dc5d-4c87-8a38-68ec3f6bfbdf", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "22b0dd37-1f39-4d82-bd19-67498decdbb7", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "fdc35cb7-c299-4487-8dfd-acbf36a32bb8", "CreateDate": "2024-04-25T12:40:46.7938472-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-25T12:40:46.7938472-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "c2516fc8-e9a8-4132-bf2d-2087cd62f497", "Name": "sample string 1" }, "Unit": { "UnitId": "688570a7-129b-4c08-bf2e-c58cb5cc322e", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "37c1d046-db12-49e0-b09d-7c5cd1fa2f8e", "CreateDate": "2024-04-25T12:40:46.7938472-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-25T12:40:46.7938472-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": "2f532b24-0e14-42ff-bc30-1a13abc8fde7", "CreateDate": "2024-04-25T12:40:46.7938472-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-25T12:40:46.7938472-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }