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": "beb2d9b8-6b60-4a1c-a793-6dcc0a35e940", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "c65fe3bf-c812-49fb-853f-2e7b70923039", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "6210cb54-1f50-40c9-8d59-0618df5faa65", "CreateDate": "2025-07-19T04:25:55.6992597-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-19T04:25:55.6992597-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "1fe2c213-0510-4eea-bf3b-8592d95fd2e8", "Name": "sample string 1" }, "Unit": { "UnitId": "1823d140-d049-4bef-b367-1ab5801b8797", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "bb30d7c2-a5c4-4f31-afb8-b10d8ed05459", "CreateDate": "2025-07-19T04:25:55.6992597-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-19T04:25:55.6992597-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "61af1556-1ac6-4aff-95d5-c3489912b310", "FieldId": "cc3230cc-82eb-411f-b34b-1814d81030e6", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "61af1556-1ac6-4aff-95d5-c3489912b310", "FieldId": "cc3230cc-82eb-411f-b34b-1814d81030e6", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "8e29f47d-771b-4ba2-9c2c-ad0498d23827", "CreateDate": "2025-07-19T04:25:55.6992597-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-19T04:25:55.6992597-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": "d0f42e63-00fe-43c3-b9ca-0fb0fa2fd37f", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "7d793943-91e4-495e-9d09-173895df0511", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "d8a58c91-cbf0-4782-a33b-8c9438bb7513", "CreateDate": "2025-07-19T04:25:55.6992597-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-19T04:25:55.6992597-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "b6d5e02e-2765-448d-b40f-64330a744c88", "Name": "sample string 1" }, "Unit": { "UnitId": "04f867ad-ed1b-4fe2-a3eb-16b2886f5c51", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "cf05f9f0-f7b3-429c-8fba-a70805b0b1d3", "CreateDate": "2025-07-19T04:25:55.6992597-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-19T04:25:55.6992597-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "0f426f88-6d07-4555-afd5-297ed791a56b", "FieldId": "8534a58c-05a9-4bf9-ab63-3b802e405c3b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "0f426f88-6d07-4555-afd5-297ed791a56b", "FieldId": "8534a58c-05a9-4bf9-ab63-3b802e405c3b", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "cbc859ae-12ab-4cce-af39-b07ebf40477b", "CreateDate": "2025-07-19T04:25:55.6992597-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-19T04:25:55.6992597-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }