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": "41b802bd-13d3-456e-a346-3e89d88cc43c", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "a707314c-94f2-444d-aff4-fd2ad078610f", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "cb1c7fba-fad9-47ee-945f-743c30a5f1b4", "CreateDate": "2025-10-15T00:15:32.032869-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-15T00:15:32.032869-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "eabf5591-0e30-4826-bc6d-6d409abb44b6", "Name": "sample string 1" }, "Unit": { "UnitId": "26541bb6-d9e4-46ee-8428-a798e5952674", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "517a5bc4-c8d1-4efa-aec0-77a57a80f042", "CreateDate": "2025-10-15T00:15:32.032869-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-15T00:15:32.032869-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "95606a02-f741-46fe-b9c3-a5b51fa59706", "FieldId": "45668a54-8dd5-4bc9-b8be-ead0f7d9990f", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "95606a02-f741-46fe-b9c3-a5b51fa59706", "FieldId": "45668a54-8dd5-4bc9-b8be-ead0f7d9990f", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "dce5442a-5b42-4bed-ab37-5715ec4cdd19", "CreateDate": "2025-10-15T00:15:32.032869-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-15T00:15:32.032869-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": "21a2744a-4d7c-42b2-8b10-cc9eb7797318", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "57f0eda1-6301-450c-b7ec-5ec82a389408", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "12624e2e-afd9-4bd1-b488-2fb00a230235", "CreateDate": "2025-10-15T00:15:32.032869-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-15T00:15:32.032869-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "71ac2e13-5957-4bc6-9e9e-ddea8a5579df", "Name": "sample string 1" }, "Unit": { "UnitId": "7832a1e2-df8e-4946-b3fe-d3f9794dcdd6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "5c3bbd99-6aea-4e57-a68a-c586e18b818f", "CreateDate": "2025-10-15T00:15:32.032869-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-15T00:15:32.032869-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "228d114d-4cb2-4ab9-ae09-9310d3752432", "FieldId": "9de1cf52-95aa-4812-b7b4-77233b9d64df", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "228d114d-4cb2-4ab9-ae09-9310d3752432", "FieldId": "9de1cf52-95aa-4812-b7b4-77233b9d64df", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "6d93cb5e-95c5-44f7-8353-c6b28a2d7115", "CreateDate": "2025-10-15T00:15:32.032869-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-15T00:15:32.032869-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }