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": "d55a1898-4fd4-47bf-82d8-bac1a610f8ea", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "fddb1f4f-06f9-4238-b131-1a560098bf82", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "1db1918a-6298-4613-ac16-7100fc670b0f", "CreateDate": "2025-05-08T16:42:26.8392927-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T16:42:26.8392927-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "298798b5-874e-4ce2-85e6-df95ac6a616e", "Name": "sample string 1" }, "Unit": { "UnitId": "e6ffa3d4-912a-4358-b35e-0c33aed49b15", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "4371c996-a256-4271-83aa-3f9eb85fa020", "CreateDate": "2025-05-08T16:42:26.8392927-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T16:42:26.8392927-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "25666d6d-ca07-46aa-a090-c618758b7cc0", "FieldId": "0d780703-3e46-4f54-9bee-8e9f41a77d2b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "25666d6d-ca07-46aa-a090-c618758b7cc0", "FieldId": "0d780703-3e46-4f54-9bee-8e9f41a77d2b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "f376a9d7-ae46-4594-b1e7-799135a92066", "CreateDate": "2025-05-08T16:42:26.8392927-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T16:42:26.8392927-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": "701797b4-c16d-4e16-bc31-2776118c9911", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "56c52cf8-5400-4c6e-a1d0-3aa99ef735ac", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ccfbc069-6e70-4460-9d21-e8625381812c", "CreateDate": "2025-05-08T16:42:26.8392927-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T16:42:26.8392927-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "aae0039b-18b6-4875-b2f5-4ffd4244abec", "Name": "sample string 1" }, "Unit": { "UnitId": "b7c1cfaf-a376-45f5-96fa-05f830427085", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "4eb0a5b6-900d-4a9d-9fa2-25633dad9dd3", "CreateDate": "2025-05-08T16:42:26.8392927-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T16:42:26.8392927-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "017ed02f-64a2-43f1-9966-992481c0ef0e", "FieldId": "3487ebf7-28cd-42a9-a000-6954f06a5019", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "017ed02f-64a2-43f1-9966-992481c0ef0e", "FieldId": "3487ebf7-28cd-42a9-a000-6954f06a5019", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "445b0ed4-9b73-460d-93bc-6888d0a3af5a", "CreateDate": "2025-05-08T16:42:26.8392927-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T16:42:26.8392927-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }