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": "2c90e5e1-2ce6-4d69-a246-669f481598eb", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "82086ca1-0b1b-4e19-992f-e5356ae2ae40", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "d8ae8e2a-c9a8-4979-8bdb-fe22efb865e8", "CreateDate": "2025-08-29T17:13:14.4651395-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:13:14.4651395-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "b4f3df7b-1241-47db-a92f-185f77b2d35d", "Name": "sample string 1" }, "Unit": { "UnitId": "1186e86e-0bd1-4ee2-b7ab-2c01d980281b", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "92fe167d-46fd-4fef-b0a3-c6cfa7e68dc9", "CreateDate": "2025-08-29T17:13:14.4651395-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:13:14.4651395-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "1390165c-cf1f-466d-888f-bc231574386a", "FieldId": "db461ea6-4595-4b51-83bb-9e86e6a6024b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "1390165c-cf1f-466d-888f-bc231574386a", "FieldId": "db461ea6-4595-4b51-83bb-9e86e6a6024b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "11b97a43-696e-44e3-8b91-dbd24c1c4961", "CreateDate": "2025-08-29T17:13:14.4651395-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:13:14.4651395-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": "7cbbf304-c0ee-4c75-bbef-f6c37b1727ca", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "3d2f2b4c-12f2-4cba-bd70-a7ea6548d491", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "c9da9cc9-f7e6-43b4-a75f-ba0c8a985d9a", "CreateDate": "2025-08-29T17:13:14.4808274-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:13:14.4808274-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "967c8ffb-4ea3-4f5e-aaae-87e386197119", "Name": "sample string 1" }, "Unit": { "UnitId": "7f3c61d7-f853-44c9-8b1f-039a84bef7e5", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "de333dbb-4592-4881-a30a-6f1f1c0c89eb", "CreateDate": "2025-08-29T17:13:14.4808274-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:13:14.4808274-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "1a1580f0-0fac-42e3-9a55-d0dfd0031994", "FieldId": "5c2f6c74-432c-41ad-aeb9-2726107c03c5", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "1a1580f0-0fac-42e3-9a55-d0dfd0031994", "FieldId": "5c2f6c74-432c-41ad-aeb9-2726107c03c5", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "60ea4c3a-b3c2-48b0-a30e-69256787b7a8", "CreateDate": "2025-08-29T17:13:14.4808274-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:13:14.4808274-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }