DELETE TaskTypes

Deletes the given task type, including all tasks of that type.

Request Information

URI Parameters

None.

Body Parameters

Task type to delete

TaskType
NameDescriptionTypeAdditional information
TaskTypeId

globally unique identifier

None.

Name

string

None.

Description

string

None.

CustomStatuses

boolean

None.

Fields

Collection of TaskTypeField

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:
{
  "TaskTypeId": "ccb02b52-44c4-4c41-a600-3cbd379dc97f",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "CustomStatuses": true,
  "Fields": [
    {
      "TaskTypeFieldId": "94a2634b-ff52-4bb5-8adb-fc98f7e7c5f0",
      "Section": {
        "TaskTypeSectionId": "4925dda8-7851-45e2-b596-9306f175cf9d",
        "Name": "sample string 1",
        "Label": "sample string 2",
        "DisplayOrder": 1,
        "IsRepeatable": true,
        "VisibleExpression": "sample string 4",
        "SourceSystemId": "sample string 5"
      },
      "Name": "sample string 1",
      "Label": "sample string 2",
      "Description": "sample string 3",
      "DataType": {
        "DataTypeId": "e6f5ca1c-f93e-4ddd-9c59-11c3e38540e9",
        "Name": "sample string 1"
      },
      "Unit": {
        "UnitId": "fd886a3c-6eb2-4471-9ffc-ac0da834bb7f",
        "Code": "sample string 1",
        "Description": "sample string 2",
        "SourceSystemId": "sample string 3",
        "CompanyId": "4dab7889-ae07-4925-9887-aaa398f43f79",
        "CreateDate": "2024-11-21T05:13:13.1399589-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-21T05:13:13.1399589-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "DisplayOrder": 1,
      "MinValue": 1.0,
      "MaxValue": 1.0,
      "MinLength": 1,
      "MaxLength": 1,
      "HasValidValues": true,
      "ValidValues": [
        {
          "ValidValueId": "687c2b97-33cd-429d-868d-1b7bd6600fde",
          "FieldId": "accf05ee-f3a2-4dc4-b022-3d8679d3e8c0",
          "FieldName": "sample string 1",
          "FieldLable": "sample string 2",
          "ValueText": "sample string 3",
          "LabelText": "sample string 4"
        },
        {
          "ValidValueId": "687c2b97-33cd-429d-868d-1b7bd6600fde",
          "FieldId": "accf05ee-f3a2-4dc4-b022-3d8679d3e8c0",
          "FieldName": "sample string 1",
          "FieldLable": "sample string 2",
          "ValueText": "sample string 3",
          "LabelText": "sample string 4"
        }
      ],
      "ValueExpression": "sample string 5",
      "RequiredExpression": "sample string 6",
      "IsAttachment": true,
      "DefaultValueExpression": "sample string 8",
      "IsMultiline": true,
      "IsRepeatable": true,
      "VisibleExpression": "sample string 11",
      "SourceSystemId": "sample string 12"
    },
    {
      "TaskTypeFieldId": "94a2634b-ff52-4bb5-8adb-fc98f7e7c5f0",
      "Section": {
        "TaskTypeSectionId": "4925dda8-7851-45e2-b596-9306f175cf9d",
        "Name": "sample string 1",
        "Label": "sample string 2",
        "DisplayOrder": 1,
        "IsRepeatable": true,
        "VisibleExpression": "sample string 4",
        "SourceSystemId": "sample string 5"
      },
      "Name": "sample string 1",
      "Label": "sample string 2",
      "Description": "sample string 3",
      "DataType": {
        "DataTypeId": "e6f5ca1c-f93e-4ddd-9c59-11c3e38540e9",
        "Name": "sample string 1"
      },
      "Unit": {
        "UnitId": "fd886a3c-6eb2-4471-9ffc-ac0da834bb7f",
        "Code": "sample string 1",
        "Description": "sample string 2",
        "SourceSystemId": "sample string 3",
        "CompanyId": "4dab7889-ae07-4925-9887-aaa398f43f79",
        "CreateDate": "2024-11-21T05:13:13.1399589-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-21T05:13:13.1399589-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "DisplayOrder": 1,
      "MinValue": 1.0,
      "MaxValue": 1.0,
      "MinLength": 1,
      "MaxLength": 1,
      "HasValidValues": true,
      "ValidValues": [
        {
          "ValidValueId": "687c2b97-33cd-429d-868d-1b7bd6600fde",
          "FieldId": "accf05ee-f3a2-4dc4-b022-3d8679d3e8c0",
          "FieldName": "sample string 1",
          "FieldLable": "sample string 2",
          "ValueText": "sample string 3",
          "LabelText": "sample string 4"
        },
        {
          "ValidValueId": "687c2b97-33cd-429d-868d-1b7bd6600fde",
          "FieldId": "accf05ee-f3a2-4dc4-b022-3d8679d3e8c0",
          "FieldName": "sample string 1",
          "FieldLable": "sample string 2",
          "ValueText": "sample string 3",
          "LabelText": "sample string 4"
        }
      ],
      "ValueExpression": "sample string 5",
      "RequiredExpression": "sample string 6",
      "IsAttachment": true,
      "DefaultValueExpression": "sample string 8",
      "IsMultiline": true,
      "IsRepeatable": true,
      "VisibleExpression": "sample string 11",
      "SourceSystemId": "sample string 12"
    }
  ],
  "SourceSystemId": "sample string 4",
  "CompanyId": "e6b13c59-f20f-49d9-a370-db39cdec8966",
  "CreateDate": "2024-11-21T05:13:13.1399589-08:00",
  "CreateUser": "sample string 6",
  "LastModifiedDate": "2024-11-21T05:13:13.1399589-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"
}