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": "dc280b50-2816-4d84-a5ea-2b6421de46c8", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "58b2bd2d-e46d-40ff-8a22-ee0a6a99ea87", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "3aa1b1f2-1ac6-4504-ac3a-ffbdac3f143a", "CreateDate": "2025-06-27T06:45:05.8470111-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-27T06:45:05.8470111-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "bcebb772-4ffe-4b6f-8eb9-08afd4ae8299", "Name": "sample string 1" }, "Unit": { "UnitId": "f42691d0-def8-4bad-ae9d-31f0aaaaf987", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "167f16f0-13c8-4fea-adb2-b2a9e2238a34", "CreateDate": "2025-06-27T06:45:05.8470111-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-27T06:45:05.8470111-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "b7f6dfd9-ccaf-470f-b530-209cf0b0cd42", "FieldId": "ab06cd2a-8e5b-4cab-b014-6afe2dd70520", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "b7f6dfd9-ccaf-470f-b530-209cf0b0cd42", "FieldId": "ab06cd2a-8e5b-4cab-b014-6afe2dd70520", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "0bbfbc11-ab4d-4c18-9e8b-69ebd49eb0d6", "CreateDate": "2025-06-27T06:45:05.8470111-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-27T06:45:05.8470111-07: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": "5aa63923-fa21-4b8c-bafb-e9bce3de1521", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "83e54108-5ca1-40d3-897b-9cae0fec2776", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "c4fe6b00-37dc-4870-91d3-6fb71b47b518", "CreateDate": "2025-06-27T06:45:05.8470111-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-27T06:45:05.8470111-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "6fa5de29-061b-413b-a652-c96b4bc80ed8", "Name": "sample string 1" }, "Unit": { "UnitId": "4d61c0cd-bdc3-41fb-8a4f-d75e51a64eb4", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "170bd9b7-688c-478d-af73-1995bd8ccb0c", "CreateDate": "2025-06-27T06:45:05.8470111-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-27T06:45:05.8470111-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "57b58731-2264-4628-82bb-8f61f2d32c4b", "FieldId": "f7b0e8f4-ac6c-4d0e-bce4-83626f77cf0f", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "57b58731-2264-4628-82bb-8f61f2d32c4b", "FieldId": "f7b0e8f4-ac6c-4d0e-bce4-83626f77cf0f", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "104bb791-471b-4354-8748-8d2454f26452", "CreateDate": "2025-06-27T06:45:05.8470111-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-27T06:45:05.8470111-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }