PUT PropertyTypes
Updates the given property type.
Request Information
URI Parameters
None.
Body Parameters
Property type to update
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": "0e041a3d-eb68-4979-97ea-10af5ea17d7e", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "7312cf5c-7bbd-424c-879a-ff3533a064a8", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "cefb8790-53ec-43a3-8438-e4cf76de6142", "CreateDate": "2024-11-21T04:40:09.0258266-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:40:09.0258266-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "e46cdd30-33cc-45ef-9970-a17ff9284eae", "Name": "sample string 1" }, "Unit": { "UnitId": "5471d8cb-65a8-43db-a184-f632b9e4e005", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "e3188edd-a6b9-4849-8a5e-e3e3f7340328", "CreateDate": "2024-11-21T04:40:09.0258266-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:40:09.0258266-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "8bf795a6-cfe7-456e-b964-9c63dd80df97", "FieldId": "02834f81-0a80-44b0-ae6e-bdb3a514b804", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "8bf795a6-cfe7-456e-b964-9c63dd80df97", "FieldId": "02834f81-0a80-44b0-ae6e-bdb3a514b804", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "28450ddd-1798-4ff1-8d24-61392d8910d7", "CreateDate": "2024-11-21T04:40:09.0258266-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:40:09.0258266-08:00", "LastModifiedUser": "sample string 7" }
Response Information
Resource Description
On success, the updated 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": "a0e8f946-aece-4763-8d01-78af360b8c96", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "1ff33e44-77c9-4a72-bb73-de95b4b9dd70", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "bf925ec8-df6a-4120-9b63-93fcb04a7420", "CreateDate": "2024-11-21T04:40:09.0258266-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:40:09.0258266-08:00", "LastModifiedUser": "sample string 7" }, "DataType": { "DataTypeId": "6db45637-e01f-4913-b1a9-dd190ee0c7b7", "Name": "sample string 1" }, "Unit": { "UnitId": "5eb45dd8-9657-4a40-9a9f-d64efb95df32", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "460d3d36-a0b5-4421-ba47-ffde4c08e95f", "CreateDate": "2024-11-21T04:40:09.0258266-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:40:09.0258266-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "49e93e24-1842-49d0-ae06-5d2ec2d9038f", "FieldId": "2ad2c961-f23e-42c5-b545-33452daf6aa1", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "49e93e24-1842-49d0-ae06-5d2ec2d9038f", "FieldId": "2ad2c961-f23e-42c5-b545-33452daf6aa1", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "a27494db-56b7-4e12-9315-8b03dd812c34", "CreateDate": "2024-11-21T04:40:09.0258266-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:40:09.0258266-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }