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": "9dd879b2-be86-4dc3-96db-e79dc638914e", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "b9fe73f6-ba12-4ce5-ac54-7ec0856c9567", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "eea2f26e-703f-4c42-926b-b28ae2b7698c", "CreateDate": "2025-01-30T17:12:30.4069645-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T17:12:30.4069645-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "5a8a0e3e-dc8a-49d9-8d6c-97bc448d0e5e", "Name": "sample string 1" }, "Unit": { "UnitId": "e94f4ced-d79a-4f53-9315-a4aca5dacfe2", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3f90fdce-9ccc-4753-a2e6-7e75ae5ff368", "CreateDate": "2025-01-30T17:12:30.4069645-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T17:12:30.4069645-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "e59967bf-5a94-4abb-a806-1aa70a20065b", "FieldId": "c08287d9-2df4-48f1-aad9-55722cae6cba", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "e59967bf-5a94-4abb-a806-1aa70a20065b", "FieldId": "c08287d9-2df4-48f1-aad9-55722cae6cba", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "cf5a54ca-8fb3-4ede-aa51-0392e1b5149d", "CreateDate": "2025-01-30T17:12:30.4069645-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-30T17:12:30.4069645-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": "39eeeade-8c86-442c-92e3-31caf552d3c9", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "244d6210-30dc-4aa9-8f53-e47fcf7d2c8a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "d344b670-d9b1-4156-9284-ec058eab8680", "CreateDate": "2025-01-30T17:12:30.4069645-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T17:12:30.4069645-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "3944002d-9692-44b6-9b85-8be2360a48c4", "Name": "sample string 1" }, "Unit": { "UnitId": "0a205f7e-04a5-4123-ba2c-9aadaa42326f", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "0155c7b3-47be-4988-99e8-0aa9c1b160d1", "CreateDate": "2025-01-30T17:12:30.4069645-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T17:12:30.4069645-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "552cdabb-966c-420f-b184-a12f9c093742", "FieldId": "35a608f1-e9e3-4e5a-b5d6-574ea1d15210", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "552cdabb-966c-420f-b184-a12f9c093742", "FieldId": "35a608f1-e9e3-4e5a-b5d6-574ea1d15210", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "a167bf09-71c2-453c-a845-fbbd48478e62", "CreateDate": "2025-01-30T17:12:30.4069645-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-30T17:12:30.4069645-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }