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": "6142eaa5-5a15-4788-b1e8-cfced5e76622", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "237b12b3-8fb5-4ab1-b78a-c0512d8304c3", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ba3233cd-2cd4-4013-b130-be6270dba1ef", "CreateDate": "2024-11-21T05:00:57.6759583-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T05:00:57.6759583-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "5b2017b5-cfa3-42ac-abb1-fd9bb323b272", "Name": "sample string 1" }, "Unit": { "UnitId": "d42eddff-39ff-4db1-961b-87ab1744b8b6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "75821d3c-0fee-4bfc-9f36-15dc7c1789af", "CreateDate": "2024-11-21T05:00:57.6759583-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T05:00:57.6759583-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "f60b5e36-77f2-463c-8511-f83076a01459", "FieldId": "ce56b3f2-36c0-4378-ba63-5861407e4783", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "f60b5e36-77f2-463c-8511-f83076a01459", "FieldId": "ce56b3f2-36c0-4378-ba63-5861407e4783", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "64f7cfb3-67a8-4e63-8b88-d17b29adf6f5", "CreateDate": "2024-11-21T05:00:57.6759583-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T05:00:57.6759583-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": "52de7aea-1f70-4fff-b73c-cf6477b54e06", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "c7721178-9824-4272-a781-1639f7f0ccd9", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "95fa66c3-fd90-48cc-a529-bc90f7efe887", "CreateDate": "2024-11-21T05:00:57.6759583-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T05:00:57.6759583-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "0f04684a-6079-460d-aabb-7fe5df86a2f2", "Name": "sample string 1" }, "Unit": { "UnitId": "123a393d-c364-4364-b05d-3cb3d7844e64", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "8377c89f-bc4f-47aa-a776-72d348ae62ce", "CreateDate": "2024-11-21T05:00:57.6759583-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T05:00:57.6759583-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "1e59cb88-0f75-42be-8da1-72b6b831f7c5", "FieldId": "a1c5cee6-9aa8-4c61-8116-1ede3d5cc34a", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "1e59cb88-0f75-42be-8da1-72b6b831f7c5", "FieldId": "a1c5cee6-9aa8-4c61-8116-1ede3d5cc34a", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "b77a1b8d-8cf2-4a66-b202-6a7b76504f91", "CreateDate": "2024-11-21T05:00:57.6759583-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T05:00:57.6759583-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }