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": "d7545941-921d-4bcc-9bb6-a0a0174606d6", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "2fc5fc5b-4b3a-4ca0-8c30-e0ad7abfdc16", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e3ff99d7-16e2-4f3b-989c-806a4b449a4a", "CreateDate": "2024-11-21T04:36:13.8651545-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:36:13.8651545-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "bbed0d36-13c1-4565-82c8-470e6cb82148", "Name": "sample string 1" }, "Unit": { "UnitId": "5eee90e6-06b6-48d0-8c79-cedfab867e8d", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "77366ccd-255c-4539-bde8-1ef9e9abef8d", "CreateDate": "2024-11-21T04:36:13.8651545-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:36:13.8651545-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "40fe59cf-2b3b-47e7-8905-0bcc8cbcaa80", "FieldId": "aa7dbdf5-2597-4a2e-a15e-eb3d64a917c7", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "40fe59cf-2b3b-47e7-8905-0bcc8cbcaa80", "FieldId": "aa7dbdf5-2597-4a2e-a15e-eb3d64a917c7", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "5132fc9d-d81a-4d59-80ae-fd184f3b2cca", "CreateDate": "2024-11-21T04:36:13.8651545-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:36:13.8651545-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": "b37233bf-736f-4690-b96c-ff252fa13416", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "4d0948dc-c36b-4b91-8cb2-cf6687fe5e17", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f4dbcdc4-5839-49c7-b7fb-9fe24d3e7205", "CreateDate": "2024-11-21T04:36:13.8807152-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:36:13.8807152-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "679d9bab-c53b-4885-911d-750b72cd59f4", "Name": "sample string 1" }, "Unit": { "UnitId": "2f3b03e8-6ee7-48f0-99a5-4d1d9e7d4ae2", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "e8e4dc6e-248e-42b3-b442-23050e0aeb92", "CreateDate": "2024-11-21T04:36:13.8807152-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:36:13.8807152-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "1d6217a8-2eb0-44f6-8ba6-a02c736bbbbe", "FieldId": "c742713e-7b5f-4002-842f-2caa0ad86b22", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "1d6217a8-2eb0-44f6-8ba6-a02c736bbbbe", "FieldId": "c742713e-7b5f-4002-842f-2caa0ad86b22", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "1718b468-1e09-44e4-ae98-a6261339270b", "CreateDate": "2024-11-21T04:36:13.8807152-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:36:13.8807152-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }