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": "b96bc3c9-04c9-4d53-bb97-3c3c7d23a6b8", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "17c9f3c5-27ec-4ba5-83ca-30400b8120d4", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "91fcd26b-1d60-4661-9c5a-a0efd396641c", "CreateDate": "2025-05-09T15:21:27.6655342-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:21:27.6655342-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "6d692615-bc41-450f-a602-c65027d75e8f", "Name": "sample string 1" }, "Unit": { "UnitId": "422be271-d051-44da-a5e6-13eeb52cc748", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "0438cdc2-6b1b-441d-ad0b-7ebf2d7d1344", "CreateDate": "2025-05-09T15:21:27.6655342-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T15:21:27.6655342-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "7473c662-560e-4d6a-8b55-6551cdd6a6b4", "FieldId": "98648982-6b01-4b4f-a4f1-09650190bdaf", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "7473c662-560e-4d6a-8b55-6551cdd6a6b4", "FieldId": "98648982-6b01-4b4f-a4f1-09650190bdaf", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "1ddc1dda-90a9-4ef8-9624-705596e0e3b4", "CreateDate": "2025-05-09T15:21:27.6655342-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T15:21:27.6655342-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": "fe5f7034-6b45-4a38-893c-985de430dbdb", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "1091cd15-5aef-4ae3-8c4a-33e4dc330199", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "e34e47d2-b5bb-4222-b8c3-99e3bd3cd17b", "CreateDate": "2025-05-09T15:21:27.6655342-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:21:27.6655342-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "6c220ecc-cf6e-4442-9419-418d52af448f", "Name": "sample string 1" }, "Unit": { "UnitId": "f9c51b7a-de9d-429b-85d3-3c142b826e35", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "40827f3f-1df0-473a-9fe2-2eca8d9b9a4a", "CreateDate": "2025-05-09T15:21:27.6655342-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T15:21:27.6655342-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "36008735-4738-44a9-af9d-9500aca18a8c", "FieldId": "5e6c6ef8-1c44-4312-a656-8b1d65520e55", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "36008735-4738-44a9-af9d-9500aca18a8c", "FieldId": "5e6c6ef8-1c44-4312-a656-8b1d65520e55", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "b467c7c6-ad6c-41c5-8ee9-f25522c25f13", "CreateDate": "2025-05-09T15:21:27.6655342-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T15:21:27.6655342-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }