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": "94d67062-f261-47a1-8fba-d05c9bc379c2", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "0e318745-bc0b-4704-9789-81102a266903", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "5f997023-79fe-4aaa-afd1-6620cff1302f", "CreateDate": "2025-04-30T14:01:14.0985037-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:01:14.0985037-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "23d538b3-6d1c-43e5-aacb-91777ee104e9", "Name": "sample string 1" }, "Unit": { "UnitId": "92a5a8aa-0cec-4dac-8034-1677cadbdb97", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "4ce6cc4e-1c89-4f61-9005-1c8d8b8e9b8c", "CreateDate": "2025-04-30T14:01:14.0985037-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T14:01:14.0985037-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "f6a956d6-0aa4-4858-9e9c-65492e65f16f", "FieldId": "4bd4c723-1f65-459d-882c-520a03aa6afb", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "f6a956d6-0aa4-4858-9e9c-65492e65f16f", "FieldId": "4bd4c723-1f65-459d-882c-520a03aa6afb", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "bb626092-0f9c-4934-b06b-b4bf65c73f20", "CreateDate": "2025-04-30T14:01:14.0985037-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:01:14.0985037-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": "88edb3e2-2f6f-49d4-83bb-fa8b47aa381d", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "c5be8ecc-7393-4440-9ee3-25d3c693d4a9", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f8bb2b3d-0967-463c-91ee-d44066ebbb8a", "CreateDate": "2025-04-30T14:01:14.0985037-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:01:14.0985037-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "c37e7787-60e9-4b0b-bf91-dfd1983cf0e9", "Name": "sample string 1" }, "Unit": { "UnitId": "98a31d3d-55ec-478e-9635-5b2ec47f7a55", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "2a4683b8-ff05-4b0e-806d-9f6e8bc4d44b", "CreateDate": "2025-04-30T14:01:14.0985037-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T14:01:14.0985037-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "bdb1cf89-cbaf-4a9a-a01a-b4558d44fc3a", "FieldId": "1d23cfe7-d909-494a-b191-4aa3332e8624", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "bdb1cf89-cbaf-4a9a-a01a-b4558d44fc3a", "FieldId": "1d23cfe7-d909-494a-b191-4aa3332e8624", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "94aaf458-e43c-486b-bd92-8fdf219cae40", "CreateDate": "2025-04-30T14:01:14.0985037-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:01:14.0985037-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }