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": "9b91fce3-81e0-4d98-9a80-5fb61c846f78", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "759a389b-793c-4977-980f-572f629fc23c", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "2e8c4fd6-ef89-410f-bd46-9123aa6eb5ae", "CreateDate": "2025-04-17T04:00:41.5165439-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-17T04:00:41.5165439-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "5a10cbc1-1664-439b-9d73-138f9d667970", "Name": "sample string 1" }, "Unit": { "UnitId": "2ba936d9-31c4-4ee3-b073-ec8dd851f67a", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "b102e832-d085-4f79-832b-39cf0494cd1c", "CreateDate": "2025-04-17T04:00:41.5165439-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T04:00:41.5165439-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "865c74ce-aff3-424e-85eb-d7de338f1969", "FieldId": "10cf7677-bcba-4122-9741-f69da4fe5b1f", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "865c74ce-aff3-424e-85eb-d7de338f1969", "FieldId": "10cf7677-bcba-4122-9741-f69da4fe5b1f", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "2489f057-5dae-46a0-b284-f34b5d02dc60", "CreateDate": "2025-04-17T04:00:41.5165439-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-17T04:00:41.5165439-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": "d6aea284-aea9-4b34-b224-50a02bad1a89", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "60e38551-fdb0-42d1-bc25-b40c1ab0d865", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "8664224d-1e31-426e-8a6f-83580a1ee365", "CreateDate": "2025-04-17T04:00:41.5165439-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-17T04:00:41.5165439-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "4f104c65-aed0-4566-b528-5f0ec8b73764", "Name": "sample string 1" }, "Unit": { "UnitId": "32d6f6a0-2532-4845-a36d-adbcc13f9fb9", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3094382b-260f-4dea-a1ac-4b413ead8cb2", "CreateDate": "2025-04-17T04:00:41.5165439-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-17T04:00:41.5165439-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "fcc99a64-de10-4c10-9b60-97bb3a5864c4", "FieldId": "62c41b97-b2c1-493e-b850-dec4de7016a8", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "fcc99a64-de10-4c10-9b60-97bb3a5864c4", "FieldId": "62c41b97-b2c1-493e-b850-dec4de7016a8", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "cdc4b2f4-e8fd-4095-b7ec-8101254c6749", "CreateDate": "2025-04-17T04:00:41.5165439-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-17T04:00:41.5165439-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }