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": "36a01352-b81c-4425-a5e1-9352ed37ebeb", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "45fb802b-03a0-4b7b-b7fa-d0fbb49faaac", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "41589d76-ffb2-42ba-bcfa-7cb3de35fa0d", "CreateDate": "2025-03-18T16:24:14.0821842-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-18T16:24:14.0821842-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "dfc40bdf-ce6a-4f8a-8e21-43f1518985df", "Name": "sample string 1" }, "Unit": { "UnitId": "151928f3-41a7-479a-8937-7198d7e240f2", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "cb4d55f2-e1b8-4871-b3ad-30505af1ac71", "CreateDate": "2025-03-18T16:24:14.0821842-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-18T16:24:14.0821842-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "172dc74c-c5aa-465b-b538-11553f1d9ada", "FieldId": "f50c3253-2769-4842-b89a-09c8f6fb04b6", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "172dc74c-c5aa-465b-b538-11553f1d9ada", "FieldId": "f50c3253-2769-4842-b89a-09c8f6fb04b6", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "a43937f8-1622-419d-8293-9aebfd176a5e", "CreateDate": "2025-03-18T16:24:14.0821842-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-18T16:24:14.0821842-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": "213f0b67-3b4c-4a0c-b0bd-c2a4689ae2c3", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "7a7dceb0-78f2-49fc-8953-fe245a5094ee", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f6f572ed-ef6e-4473-96da-c6e81700b58b", "CreateDate": "2025-03-18T16:24:14.0821842-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-18T16:24:14.0821842-07:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "ca5a0505-0c00-499f-af3f-af5ff0e0ddb5", "Name": "sample string 1" }, "Unit": { "UnitId": "19a94f60-8778-470d-a744-718b8c78045d", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "23810825-ee61-4671-889f-a17874d9312b", "CreateDate": "2025-03-18T16:24:14.0821842-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-18T16:24:14.0821842-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "8ee46030-449f-461b-afa1-09362f81316c", "FieldId": "84da06a2-6301-4277-8fe1-651a27685635", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "8ee46030-449f-461b-afa1-09362f81316c", "FieldId": "84da06a2-6301-4277-8fe1-651a27685635", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "4b657639-685f-487b-badc-83e6eaaeafe8", "CreateDate": "2025-03-18T16:24:14.0821842-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-18T16:24:14.0821842-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }