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": "ad21db6c-1641-4185-977f-838da18ee9da", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "841f88e6-1fa9-40c9-9df8-753f4e56dd42", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "c6af743c-4883-4ee8-b00c-057421e2f5a8", "CreateDate": "2025-03-09T04:13:51.7273898-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T04:13:51.7273898-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "72dc4c5c-74a9-429b-92ce-87fee259fae0", "Name": "sample string 1" }, "Unit": { "UnitId": "ebaca9c9-7ee0-4887-9569-977a8e73aacb", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "11178e32-f914-4fa6-87b0-e97083dc4496", "CreateDate": "2025-03-09T04:13:51.7273898-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T04:13:51.7273898-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "d3f5f39f-4496-4a52-99ce-75c065a0e657", "FieldId": "bd0a60ca-c6c1-4c01-aafd-c7f64f5d24bd", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "d3f5f39f-4496-4a52-99ce-75c065a0e657", "FieldId": "bd0a60ca-c6c1-4c01-aafd-c7f64f5d24bd", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "ea5b5f74-4729-48e0-bd5e-6109014f2f24", "CreateDate": "2025-03-09T04:13:51.7273898-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T04:13:51.7273898-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": "5dd3b22c-8ef0-46a0-aefc-052bda4617a0", "Name": "sample string 1", "Description": "sample string 2", "AssetType": { "AssetTypeId": "12d70aff-36be-466e-849f-b31a7856efb1", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "5a841ddf-4573-4cd9-809a-cd98ddad405c", "CreateDate": "2025-03-09T04:13:51.7273898-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T04:13:51.7273898-07:00", "LastModifiedUser": "sample string 8" }, "DataType": { "DataTypeId": "d65d8bad-0018-4863-842e-0b06b18a1945", "Name": "sample string 1" }, "Unit": { "UnitId": "89023662-61d4-4af1-8a74-4f806c5f14e6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "0af4083e-da90-4d75-8b81-4d058be7def0", "CreateDate": "2025-03-09T04:13:51.7273898-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T04:13:51.7273898-07:00", "LastModifiedUser": "sample string 6" }, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "7d028335-e0ce-47bd-b8a4-c9b9cfea9316", "FieldId": "8a14004b-4519-4b01-8472-b0e6ce7c8c65", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "7d028335-e0ce-47bd-b8a4-c9b9cfea9316", "FieldId": "8a14004b-4519-4b01-8472-b0e6ce7c8c65", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" } ], "SourceSystemId": "sample string 4", "CompanyId": "340f567c-188f-4e7e-b699-128dc9fe72c9", "CreateDate": "2025-03-09T04:13:51.7273898-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T04:13:51.7273898-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }