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": "eeb51e51-c7c0-43a5-89f5-6dd6eea8b09d", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "643c2847-c26a-4f66-bfad-5cc5e31cab2c", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "55f1c189-62bb-4563-9031-994f3c4f44e1", "CreateDate": "2024-10-10T02:25:30.8945831-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T02:25:30.8945831-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "2a9b4206-bf0b-4089-b3a8-5edbf055a5ab", "Name": "sample string 1" }, "Unit": { "UnitId": "7d6144b3-ad17-4f53-a274-c82c58aad50b", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "b1ef26a9-c826-4395-a765-be2ed3404b0f", "CreateDate": "2024-10-10T02:25:30.8945831-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T02:25:30.8945831-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": "b28da644-c570-4a20-8cc8-57736d32fbcc", "CreateDate": "2024-10-10T02:25:30.8945831-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T02:25:30.8945831-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": "182d40ec-ecc7-40c2-8e61-55b608f210f8", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "424a91c0-e363-4ae7-b593-68c417586318", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "97a12b02-b004-4627-8d19-2a8329a1ea7d", "CreateDate": "2024-10-10T02:25:30.8945831-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T02:25:30.8945831-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "1521616d-ffd9-46c8-adbb-acce9b848b1b", "Name": "sample string 1" }, "Unit": { "UnitId": "aeb5a8e3-0fea-4538-bad2-f988ea66c561", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "0dcd3f01-1c44-4718-a8b2-3329d6215ffd", "CreateDate": "2024-10-10T02:25:30.8945831-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T02:25:30.8945831-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": "cee497e8-d2bb-44a2-8b01-c71c23aa90ed", "CreateDate": "2024-10-10T02:25:30.8945831-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T02:25:30.8945831-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }