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": "61bb13d3-ab65-47e8-9090-f8765e51719f", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "99018787-3893-4d79-8f4c-249f66eb4305", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "f538d226-c825-4c8d-989c-a6ce6382ae71", "CreateDate": "2025-07-30T23:17:57.380714-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-30T23:17:57.380714-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "107a622d-9dbb-41e9-b6fb-21d1a3c7d45d", "Name": "sample string 1" }, "Unit": { "UnitId": "0d683250-d566-4b9c-a2ca-2b8bbdba54b4", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "95d28975-3333-4f55-82d5-5a5440b1b762", "CreateDate": "2025-07-30T23:17:57.380714-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-30T23:17:57.380714-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "1baf8777-e01c-4066-844d-a75d00c58e98", "FieldId": "5f114eb8-0564-41df-a82d-94f70bef84d3", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "1baf8777-e01c-4066-844d-a75d00c58e98", "FieldId": "5f114eb8-0564-41df-a82d-94f70bef84d3", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "b61ca3d4-c96a-420c-800a-580ddffe69c8", "CreateDate": "2025-07-30T23:17:57.380714-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-30T23:17:57.380714-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": "1e238db8-5aa2-4238-b5cb-b294f3b72e00", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "66afb5c3-daf8-4dc0-88c5-9d2bea57e8c2", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "c72e9591-10c2-4c35-a517-256d4c84c126", "CreateDate": "2025-07-30T23:17:57.396287-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-30T23:17:57.396287-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "98a096b7-7873-430c-b84d-54038c749163", "Name": "sample string 1" }, "Unit": { "UnitId": "e8274b06-9ab9-42e1-8c43-46cb40179db2", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "92686ce2-0e8b-4969-9100-2866fb5ae0ce", "CreateDate": "2025-07-30T23:17:57.396287-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-30T23:17:57.396287-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "127c7db1-dcc0-4bff-927b-67acb00ea445", "FieldId": "31a3b034-ea03-4578-9095-1c30c860aefe", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "127c7db1-dcc0-4bff-927b-67acb00ea445", "FieldId": "31a3b034-ea03-4578-9095-1c30c860aefe", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "791c25b1-b20d-4ddc-a15a-2f2eb79eb779", "CreateDate": "2025-07-30T23:17:57.396287-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-30T23:17:57.396287-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }