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
NameDescriptionTypeAdditional 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": "e980ad6f-f95c-44f9-8068-97a40a4a4ce0",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "4f83c518-e087-48de-b5e4-e60980d79303",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "IsWell": true,
    "DisplayColor": "sample string 4",
    "SourceSystemId": "sample string 5",
    "CompanyId": "51b2c1d1-1d04-4503-bde0-35ba16c31ec3",
    "CreateDate": "2024-11-21T04:31:12.8637201-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-21T04:31:12.8637201-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "DataType": {
    "DataTypeId": "f39df5ed-4c7e-4328-a524-bf32aacc27d7",
    "Name": "sample string 1"
  },
  "Unit": {
    "UnitId": "0e238713-a53e-4917-9ef4-a6b9cd795e87",
    "Code": "sample string 1",
    "Description": "sample string 2",
    "SourceSystemId": "sample string 3",
    "CompanyId": "da79c235-a105-4355-87a3-af65920a01f4",
    "CreateDate": "2024-11-21T04:31:12.8637201-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-11-21T04:31:12.8637201-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "MinValue": 1.0,
  "MaxValue": 1.0,
  "MinLength": 1,
  "MaxLength": 1,
  "HasValidValues": true,
  "ValidValues": [
    {
      "ValidValueId": "06534210-cedc-4f4c-af58-f6372c0c96f4",
      "FieldId": "5847d26d-a6d9-4876-82ac-bf12e63cf44b",
      "FieldName": "sample string 1",
      "FieldLable": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    },
    {
      "ValidValueId": "06534210-cedc-4f4c-af58-f6372c0c96f4",
      "FieldId": "5847d26d-a6d9-4876-82ac-bf12e63cf44b",
      "FieldName": "sample string 1",
      "FieldLable": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    }
  ],
  "SourceSystemId": "sample string 4",
  "CompanyId": "0fc4a737-940f-4708-9c20-e4e9236b083d",
  "CreateDate": "2024-11-21T04:31:12.8793451-08:00",
  "CreateUser": "sample string 6",
  "LastModifiedDate": "2024-11-21T04:31:12.8793451-08:00",
  "LastModifiedUser": "sample string 7"
}

Response Information

Resource Description

On success, the created property type.

NameDescriptionTypeAdditional information
Data

PropertyType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "PropertyTypeId": "e5ed1f0d-9990-4a9b-bdd7-6cf93253458e",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AssetType": {
      "AssetTypeId": "a231f4b0-914d-42d9-b08d-497e04b0e908",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "IsWell": true,
      "DisplayColor": "sample string 4",
      "SourceSystemId": "sample string 5",
      "CompanyId": "6c58ac30-70c2-47e3-82af-0a50a6a74a86",
      "CreateDate": "2024-11-21T04:31:12.9105937-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-11-21T04:31:12.9105937-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "DataType": {
      "DataTypeId": "3ddc2324-0e7d-4607-a41b-1d0583dfd737",
      "Name": "sample string 1"
    },
    "Unit": {
      "UnitId": "2d4cd0e5-fa94-4179-944c-eecdb68aa6fe",
      "Code": "sample string 1",
      "Description": "sample string 2",
      "SourceSystemId": "sample string 3",
      "CompanyId": "7cd2463a-b06e-4bca-a67b-81ca79fe6f73",
      "CreateDate": "2024-11-21T04:31:12.9105937-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-21T04:31:12.9105937-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "MinValue": 1.0,
    "MaxValue": 1.0,
    "MinLength": 1,
    "MaxLength": 1,
    "HasValidValues": true,
    "ValidValues": [
      {
        "ValidValueId": "ed963075-11b7-42c6-a9d1-d289a3b04569",
        "FieldId": "e36f4904-9995-4f89-8e8f-8c70221d238c",
        "FieldName": "sample string 1",
        "FieldLable": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      },
      {
        "ValidValueId": "ed963075-11b7-42c6-a9d1-d289a3b04569",
        "FieldId": "e36f4904-9995-4f89-8e8f-8c70221d238c",
        "FieldName": "sample string 1",
        "FieldLable": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      }
    ],
    "SourceSystemId": "sample string 4",
    "CompanyId": "ffc2d1a8-d79e-4658-be9a-f6e677062847",
    "CreateDate": "2024-11-21T04:31:12.9105937-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-11-21T04:31:12.9105937-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}