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": "3f5e0a5e-6d9c-469d-9901-ee195c4e39b6", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "41b5f953-ad51-42ce-b482-276c2db444e0", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4c8abe22-3cbe-47a0-8f56-bebd26acf209", "CreateDate": "2025-01-30T16:52:23.422073-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T16:52:23.422073-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "8a4583bc-0e1b-4f02-9d3c-f2bf63278d13", "Name": "sample string 1" }, "Unit": { "UnitId": "794414b0-c5d0-4263-be1d-fa2b8a12556c", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "c4c3489f-bd98-4b49-a75d-6e1e22138004", "CreateDate": "2025-01-30T16:52:23.422073-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T16:52:23.422073-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "f47dd9d4-a73f-430c-a080-8d726a2595c6", "FieldId": "82f48921-5af8-4c1e-bb7a-69726645d367", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "f47dd9d4-a73f-430c-a080-8d726a2595c6", "FieldId": "82f48921-5af8-4c1e-bb7a-69726645d367", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "e1bd8402-0b08-4aba-92be-77ac62caaf1b", "CreateDate": "2025-01-30T16:52:23.422073-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-30T16:52:23.422073-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": "90c9573a-7b1b-464d-8d43-248640423d27", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "1a895c3c-53b7-4690-8fc2-de2d0f432bfc", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "a7846820-09ad-44ef-9cb7-77783fafec3f", "CreateDate": "2025-01-30T16:52:23.422073-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-30T16:52:23.422073-08:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "c95db0d0-af70-4b09-8dd4-821889c2be9f", "Name": "sample string 1" }, "Unit": { "UnitId": "b08d0e43-ce26-4ef8-ac52-43b479f4bf97", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "b7710a21-5c6c-4d4c-b14b-48397c85399a", "CreateDate": "2025-01-30T16:52:23.422073-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T16:52:23.422073-08:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "841b3854-2a5d-462d-9c80-00863dc8e4f0", "FieldId": "0b231642-193b-48c5-86cc-d736fe2aa41c", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "841b3854-2a5d-462d-9c80-00863dc8e4f0", "FieldId": "0b231642-193b-48c5-86cc-d736fe2aa41c", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "7b21e94a-2d83-43a8-bf39-a62700343a8b", "CreateDate": "2025-01-30T16:52:23.422073-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-30T16:52:23.422073-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }