DELETE PropertyTypes

Deletes the given property type, including all properties of that type.

Request Information

URI Parameters

None.

Body Parameters

Property type to delete

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": "f44212a3-f09b-4a7b-a52f-0561f6ae5782",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AssetType": {
    "AssetTypeId": "61c5dbe2-8908-471f-92f5-354e757aeeea",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayColor": "sample string 3",
    "SourceSystemId": "sample string 4",
    "CompanyId": "e322864c-a60b-4c45-a01f-92e0e4e7fbcc",
    "CreateDate": "2024-12-03T09:58:09.6896756-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-03T09:58:09.6896756-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "DataType": {
    "DataTypeId": "6309d441-5cb4-4ac1-a9d1-11682fa04662",
    "Name": "sample string 1"
  },
  "Unit": {
    "UnitId": "fc5cc8cb-dc73-4e54-9354-72499e4acbfd",
    "Code": "sample string 1",
    "Description": "sample string 2",
    "SourceSystemId": "sample string 3",
    "CompanyId": "baf85101-e437-4e2b-b487-3b392398a7ef",
    "CreateDate": "2024-12-03T09:58:09.6896756-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2024-12-03T09:58:09.6896756-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "MinValue": 1.0,
  "MaxValue": 1.0,
  "MinLength": 1,
  "MaxLength": 1,
  "HasValidValues": true,
  "ValidValues": [
    {
      "ValidValueId": "b81cc9b4-0733-446d-b2cc-29c35d5ccd51",
      "FieldId": "d92d2c84-1cca-433b-ba82-58de1849215b",
      "FieldName": "sample string 1",
      "FieldLabel": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    },
    {
      "ValidValueId": "b81cc9b4-0733-446d-b2cc-29c35d5ccd51",
      "FieldId": "d92d2c84-1cca-433b-ba82-58de1849215b",
      "FieldName": "sample string 1",
      "FieldLabel": "sample string 2",
      "ValueText": "sample string 3",
      "LabelText": "sample string 4"
    }
  ],
  "SourceSystemId": "sample string 4",
  "CompanyId": "0b3a4c5c-0ee0-495e-8ce7-ced9fb48319d",
  "CreateDate": "2024-12-03T09:58:09.6896756-08:00",
  "CreateUser": "sample string 6",
  "LastModifiedDate": "2024-12-03T09:58:09.6896756-08:00",
  "LastModifiedUser": "sample string 7"
}

Response Information

Resource Description

NameDescriptionTypeAdditional information
Data

Object

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {},
  "Total": 1,
  "Message": "sample string 2"
}