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": "94189894-7260-4158-a34d-dd9e72776658", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "52013f70-e3b0-4fb1-89fc-527dc8af4bed", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "4c4b09d6-2fa2-4110-b611-ff0b62d4cb78", "CreateDate": "2024-12-21T19:00:27.7466722-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:00:27.7466722-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "121871dd-e1a5-4f26-8d65-15c77b06763d", "Name": "sample string 1" }, "Unit": { "UnitId": "55423f6f-b99c-4cb1-ab8c-63abdc4689e6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "570eced8-25cf-4619-8207-ede66536eb10", "CreateDate": "2024-12-21T19:00:27.7466722-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:00:27.7466722-08: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": "994335c8-9e18-4206-a52e-64521971b382", "CreateDate": "2024-12-21T19:00:27.7466722-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:00:27.7466722-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": "5d969373-11c0-4b70-bbf8-b55eab45b732", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "acaa51da-3669-42ac-b3d0-ee088f24019f", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "fbbcf107-26f8-4568-aa85-a17fc4353620", "CreateDate": "2024-12-21T19:00:27.7466722-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:00:27.7466722-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "db0b2732-ad00-4f8b-9084-ee10d14bb9fb", "Name": "sample string 1" }, "Unit": { "UnitId": "7474f2b0-bdb0-4f6e-bb59-0bca57c7cc08", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "40fb212a-63bb-41e9-904e-f76ba90ed597", "CreateDate": "2024-12-21T19:00:27.7466722-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:00:27.7466722-08: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": "c8da4b87-5c3a-4c13-bf65-bafdb868657f", "CreateDate": "2024-12-21T19:00:27.7466722-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:00:27.7466722-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }