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": "f996b36e-9f6f-4b89-a19a-108f46696c4c", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "9feb56c2-d246-4dab-9ed9-e2d09dcc9f92", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7b0c569c-f16d-461b-b0bc-aca9cad15656", "CreateDate": "2025-06-02T14:48:23.5247672-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:48:23.5247672-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "ce539753-3f20-44cb-8e59-ef2d007e09ff", "Name": "sample string 1" }, "Unit": { "UnitId": "cf481178-28fb-4e8c-ad3d-4c7f4ee18ddc", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3378c255-61bc-4498-8e3a-baefdd750602", "CreateDate": "2025-06-02T14:48:23.5247672-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:48:23.5247672-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "2f21049c-74ba-4682-87d5-1329d6a1d251", "FieldId": "82195692-e794-4106-93c7-f5f16e8ae072", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "2f21049c-74ba-4682-87d5-1329d6a1d251", "FieldId": "82195692-e794-4106-93c7-f5f16e8ae072", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "e694f2df-32aa-4cd3-b31c-957946004fcc", "CreateDate": "2025-06-02T14:48:23.5247672-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T14:48:23.5247672-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": "df73f008-04a8-4f7a-b0c2-9680c152a29a", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "4ad7c995-37d9-4b7b-b218-b1eaa9e04ecc", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "f30401ad-739b-42c8-80b2-ab49fba56328", "CreateDate": "2025-06-02T14:48:23.5247672-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T14:48:23.5247672-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "17948a46-dce5-4450-81a5-e575d16f241e", "Name": "sample string 1" }, "Unit": { "UnitId": "621a75b6-f0ca-415c-8291-8cc814848e4f", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "7fb69a1a-8aa8-4ee1-9e4f-a1f273ee2cbf", "CreateDate": "2025-06-02T14:48:23.5247672-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T14:48:23.5247672-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "a20339a0-98c8-4f6e-aeff-b21cd2ab604e", "FieldId": "30852b96-83c5-4070-84c1-353f7a876317", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "a20339a0-98c8-4f6e-aeff-b21cd2ab604e", "FieldId": "30852b96-83c5-4070-84c1-353f7a876317", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "525e47e2-6d49-42c4-b3fe-c2d1f2efbddf", "CreateDate": "2025-06-02T14:48:23.5247672-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T14:48:23.5247672-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }