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": "f2a6de10-73dc-4d61-9876-c861674e6b4f", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "ef37d8f3-6083-47eb-8964-685f334a262a", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "38946f55-4c62-4035-bc66-02cae4385c1d", "CreateDate": "2024-12-08T05:43:57.0011222-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T05:43:57.0011222-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "8d3af178-7b0b-4eee-af33-ce460bba7dba", "Name": "sample string 1" }, "Unit": { "UnitId": "4ec78f2e-71f3-49da-b06c-098e88ea591e", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "60383399-d444-4c8a-8a7b-ab8d71cd2b3b", "CreateDate": "2024-12-08T05:43:57.0011222-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T05:43:57.0011222-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "7a875d56-bfef-44f9-9fa6-160c45564ca7", "FieldId": "467d9276-5171-46f4-97e9-202e2b5c92c9", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "7a875d56-bfef-44f9-9fa6-160c45564ca7", "FieldId": "467d9276-5171-46f4-97e9-202e2b5c92c9", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "9a2e7437-cbed-4565-a37e-e499d3ba90d1", "CreateDate": "2024-12-08T05:43:57.0011222-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T05:43:57.0011222-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": "1f3c6c9e-f115-4174-bb26-77df1625022f", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "3a611e79-347a-4ad8-b648-1d9f4e51b5c4", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a462072b-f6a5-4243-b1f2-523156d7d57b", "CreateDate": "2024-12-08T05:43:57.0011222-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T05:43:57.0011222-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "00f6bd19-d24a-4b27-a22d-e9e98030f0d0", "Name": "sample string 1" }, "Unit": { "UnitId": "43a1a439-21e1-47a1-a094-c94b2a36df2e", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "ed309afe-4abd-4b7d-8bdf-35d5945b5126", "CreateDate": "2024-12-08T05:43:57.0011222-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T05:43:57.0011222-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "5f55532a-b477-49b8-b07b-461d05ec79f2", "FieldId": "ca955a59-4294-4625-b467-fae5ae38f1e0", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "5f55532a-b477-49b8-b07b-461d05ec79f2", "FieldId": "ca955a59-4294-4625-b467-fae5ae38f1e0", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "bfabf546-38e5-4aec-a5a0-706782141b5f", "CreateDate": "2024-12-08T05:43:57.0011222-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T05:43:57.0011222-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }