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": "d352e09e-3ce1-4602-88a5-b9d0f09c9773",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "33626d41-62f7-4e39-86bf-246ad098c599",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayColor": "sample string 3",
    "SourceSystemId": "sample string 4",
    "CompanyId": "c3a167b2-4d75-4b1c-98c7-342b20677ede",
    "CreateDate": "2024-12-21T23:08:15.171481-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-21T23:08:15.171481-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "DataType": {
    "DataTypeId": "076d0d04-557f-40dc-8ca6-b5b02c59fe83",
    "Name": "sample string 1"
  },
  "Unit": {
    "UnitId": "4b48226e-d8ac-4234-ad2e-968b9c5293da",
    "Code": "sample string 1",
    "Description": "sample string 2",
    "SourceSystemId": "sample string 3",
    "CompanyId": "a80636e4-b352-4534-b7a6-d25bd502ccf1",
    "CreateDate": "2024-12-21T23:08:15.171481-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-12-21T23:08:15.171481-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "MinValue": 1.0,
  "MaxValue": 1.0,
  "MinLength": 1,
  "MaxLength": 1,
  "HasValidValues": true,
  "ValidValues": [
    {
      "ValidValueId": "00652f1c-3261-4dcc-a03d-59c802bce1c5",
      "FieldId": "a187b841-5028-4d93-a468-b56d03261bd2",
      "FieldName": "sample string 1",
      "FieldLabel": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    },
    {
      "ValidValueId": "00652f1c-3261-4dcc-a03d-59c802bce1c5",
      "FieldId": "a187b841-5028-4d93-a468-b56d03261bd2",
      "FieldName": "sample string 1",
      "FieldLabel": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    }
  ],
  "SourceSystemId": "sample string 4",
  "CompanyId": "dcc31c00-b7e9-4552-b6bf-e224389570ea",
  "CreateDate": "2024-12-21T23:08:15.171481-08:00",
  "CreateUser": "sample string 6",
  "LastModifiedDate": "2024-12-21T23:08:15.171481-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": "d90164d2-fe12-445e-8739-6e1d5e692520",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AssetType": {
      "AssetTypeId": "a0f2b32b-7d2f-4bb2-8f33-d5618c142d98",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "eb9c6db6-c16a-46b5-9fce-94273ff4b215",
      "CreateDate": "2024-12-21T23:08:15.171481-08:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2024-12-21T23:08:15.171481-08:00",
      "LastModifiedUser": "sample string 7"
    },
    "DataType": {
      "DataTypeId": "3fa1845b-3dc9-45bd-b756-652495c8b667",
      "Name": "sample string 1"
    },
    "Unit": {
      "UnitId": "e4f3df24-0aae-4374-8d02-e2a8a9bdde88",
      "Code": "sample string 1",
      "Description": "sample string 2",
      "SourceSystemId": "sample string 3",
      "CompanyId": "3fd312e3-a9e2-4d7b-854d-f4207cc10e74",
      "CreateDate": "2024-12-21T23:08:15.171481-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-12-21T23:08:15.171481-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "MinValue": 1.0,
    "MaxValue": 1.0,
    "MinLength": 1,
    "MaxLength": 1,
    "HasValidValues": true,
    "ValidValues": [
      {
        "ValidValueId": "0ecb535e-bc98-42c1-9121-9bf34ec9584e",
        "FieldId": "049e79cf-a3ab-4c90-a1dd-14ce9d76b5d9",
        "FieldName": "sample string 1",
        "FieldLabel": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      },
      {
        "ValidValueId": "0ecb535e-bc98-42c1-9121-9bf34ec9584e",
        "FieldId": "049e79cf-a3ab-4c90-a1dd-14ce9d76b5d9",
        "FieldName": "sample string 1",
        "FieldLabel": "sample string 2",
        "ValueText": "sample string 3",
        "LabelText": "sample string 4"
      }
    ],
    "SourceSystemId": "sample string 4",
    "CompanyId": "43acc478-c4be-4f0f-a512-d59ab2e992f7",
    "CreateDate": "2024-12-21T23:08:15.171481-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-21T23:08:15.171481-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}