POST PropertyTypes
Creates a new property type.
Request Information
URI Parameters
None.
Body Parameters
Property type to create. PropertyTypeId should not be filled in.
PropertyType| Name | 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": "266dbea8-49ef-4f99-9c2e-2d950ebddff1",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "71590362-5f54-4c79-9dfa-b80203ecd4d6",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "acea6468-bea2-42c1-a76d-a61db80301a8",
"CreateDate": "2025-11-20T07:17:39.0588785-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-20T07:17:39.0588785-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "8b204338-75ac-4659-9829-62c24fd0867c",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "4c7bee3f-9f55-4e3f-afdb-88aff45ed72f",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "12ac40c8-cf52-4620-913f-5936394e1ed5",
"CreateDate": "2025-11-20T07:17:39.0588785-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-20T07:17:39.0588785-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "1bdbcbed-8b4e-4450-bd9b-b54b6eaf05c9",
"FieldId": "364bc183-8e69-4992-a472-9187277a28b7",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "1bdbcbed-8b4e-4450-bd9b-b54b6eaf05c9",
"FieldId": "364bc183-8e69-4992-a472-9187277a28b7",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"SourceSystemId": "sample string 4",
"CompanyId": "42edd59a-4b2e-466a-b943-b3a203ebbbbb",
"CreateDate": "2025-11-20T07:17:39.0588785-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-20T07:17:39.0588785-08: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": "52ba4387-d8ad-45a2-a606-195c862ba758",
"Name": "sample string 1",
"Description": "sample string 2",
"AssetType": {
"AssetTypeId": "5b856327-eee7-454b-b0cd-51ab3909f970",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0f8308bd-b5ce-4bfb-b9d8-0220a2aa5f17",
"CreateDate": "2025-11-20T07:17:39.07458-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-20T07:17:39.07458-08:00",
"LastModifiedUser": "sample string 8"
},
"DataType": {
"DataTypeId": "ee5be30f-efa5-4c84-8716-1b0f80ff04f8",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "0f5c401d-e3e5-4cdd-b87c-4770df4bbe30",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "b967f505-e41b-4044-b362-62a613892dbe",
"CreateDate": "2025-11-20T07:17:39.07458-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-20T07:17:39.07458-08:00",
"LastModifiedUser": "sample string 6"
},
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "6925c58b-60f7-4d33-a273-fb762f8c14fd",
"FieldId": "1fbc470d-b707-428a-8bd2-7422033ec3a8",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "6925c58b-60f7-4d33-a273-fb762f8c14fd",
"FieldId": "1fbc470d-b707-428a-8bd2-7422033ec3a8",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"SourceSystemId": "sample string 4",
"CompanyId": "92c16438-9036-4c66-8c14-6344abb1f578",
"CreateDate": "2025-11-20T07:17:39.07458-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-20T07:17:39.07458-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}