DELETE Tasks

Deletes the given task.

Request Information

URI Parameters

None.

Body Parameters

The task to delete.

Task
NameDescriptionTypeAdditional information
TaskId

globally unique identifier

None.

Asset

Asset

None.

Title

string

None.

Description

string

None.

TaskStatusType

TaskStatusType

None.

TaskCategory

TaskCategory

None.

TaskType

TaskType

None.

AssignedOnDate

date

None.

AssignedToUser

User

None.

AssignedByUser

User

None.

DueDate

date

None.

CompletedDate

date

None.

Priority

TaskPriority

None.

HasAttachments

boolean

None.

Attachments

Collection of TaskAttachment

None.

Values

Collection of TaskFieldValue

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:
{
  "TaskId": "526ac57e-40fb-45c9-b19e-9a04e874af8a",
  "Asset": {
    "AssetId": "4f60ae5b-bb0c-439a-b0d6-18e4fd040cfb",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "1e7a09d2-8270-4268-a99c-9ea7d6adcbb8",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "b0cb771f-607c-4526-ac00-fd83419d3530",
      "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
      "LastModifiedUser": "sample string 7"
    },
    "AssetGroup": {
      "AssetGroupId": "35a87e8e-ab5d-45ac-82d4-b280e7eb732b",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
      "MeasurementValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "0acdf825-cece-4577-9e59-f108d38d06cc",
      "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "FormValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
    "MeasurementValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "27d204bc-8bbd-4c83-b2c9-66412829baf0",
    "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "Title": "sample string 1",
  "Description": "sample string 2",
  "TaskStatusType": {
    "TaskStatusTypeId": "7ae6e490-2230-4b34-a602-03b07f43a261",
    "Name": "sample string 1"
  },
  "TaskCategory": {
    "TaskCategoryId": "faa518e1-4270-4d64-a2d6-bc579217247b",
    "Name": "sample string 1",
    "SourceSystemId": "sample string 2",
    "CompanyId": "c165a328-1925-48e7-8aa5-0d8f25a1650c",
    "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
    "CreateUser": "sample string 4",
    "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
    "LastModifiedUser": "sample string 5"
  },
  "TaskType": {
    "TaskTypeId": "19175d27-7358-491d-a4fb-e6cabdae50ae",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "Fields": [
      {
        "TaskTypeFieldId": "73c60a75-f32a-49f0-a83b-1c76a4f300e1",
        "Section": {
          "TaskTypeSectionId": "6e59cba1-de6c-4039-9547-868313a4fcf8",
          "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": "063c3ae5-4c7c-4f9c-9eef-607cc05e5364",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "0a051c16-b8bc-4e39-aa0f-34711bc30d5b",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "12f3590a-f3dd-49cd-979b-aaf256131825",
          "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          "sample string 1",
          "sample string 2"
        ],
        "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": "73c60a75-f32a-49f0-a83b-1c76a4f300e1",
        "Section": {
          "TaskTypeSectionId": "6e59cba1-de6c-4039-9547-868313a4fcf8",
          "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": "063c3ae5-4c7c-4f9c-9eef-607cc05e5364",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "0a051c16-b8bc-4e39-aa0f-34711bc30d5b",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "12f3590a-f3dd-49cd-979b-aaf256131825",
          "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          "sample string 1",
          "sample string 2"
        ],
        "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 3",
    "CompanyId": "a879b3be-5a94-4857-b13e-92f69c207d36",
    "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "AssignedOnDate": "2022-11-26T16:36:31.0018708-08:00",
  "AssignedToUser": {
    "UserId": "18ccb720-ebb7-4ea1-9caa-676b54ce1691",
    "UserName": "sample string 1",
    "FullName": "sample string 2",
    "PhoneNumber": "sample string 3",
    "Email": "sample string 4",
    "IsLockedOut": true,
    "IsApproved": true,
    "Role": {
      "Name": "sample string 1",
      "Description": "sample string 2"
    },
    "CompanyId": "0f70bcbc-1d30-4b8a-afa2-32cd7369352c",
    "Teams": [
      {
        "TeamId": "5cd4bbae-d4c0-497c-a5fa-14e7df7227db",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "Users": [],
        "AssetGroups": [
          {
            "AssetGroupId": "35a87e8e-ab5d-45ac-82d4-b280e7eb732b",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "MeasurementValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "0acdf825-cece-4577-9e59-f108d38d06cc",
            "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
            "LastModifiedUser": "sample string 6"
          },
          {
            "AssetGroupId": "35a87e8e-ab5d-45ac-82d4-b280e7eb732b",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "MeasurementValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "0acdf825-cece-4577-9e59-f108d38d06cc",
            "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
            "LastModifiedUser": "sample string 6"
          }
        ],
        "SourceSystemId": "sample string 3",
        "CompanyId": "6c4684c2-1532-4e25-9aa7-f8511870bd1a",
        "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
        "LastModifiedUser": "sample string 6"
      },
      {
        "TeamId": "5cd4bbae-d4c0-497c-a5fa-14e7df7227db",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "Users": [],
        "AssetGroups": [
          {
            "AssetGroupId": "35a87e8e-ab5d-45ac-82d4-b280e7eb732b",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "MeasurementValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "0acdf825-cece-4577-9e59-f108d38d06cc",
            "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
            "LastModifiedUser": "sample string 6"
          },
          {
            "AssetGroupId": "35a87e8e-ab5d-45ac-82d4-b280e7eb732b",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "MeasurementValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "0acdf825-cece-4577-9e59-f108d38d06cc",
            "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
            "LastModifiedUser": "sample string 6"
          }
        ],
        "SourceSystemId": "sample string 3",
        "CompanyId": "6c4684c2-1532-4e25-9aa7-f8511870bd1a",
        "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
        "LastModifiedUser": "sample string 6"
      }
    ]
  },
  "AssignedByUser": {
    "UserId": "18ccb720-ebb7-4ea1-9caa-676b54ce1691",
    "UserName": "sample string 1",
    "FullName": "sample string 2",
    "PhoneNumber": "sample string 3",
    "Email": "sample string 4",
    "IsLockedOut": true,
    "IsApproved": true,
    "Role": {
      "Name": "sample string 1",
      "Description": "sample string 2"
    },
    "CompanyId": "0f70bcbc-1d30-4b8a-afa2-32cd7369352c",
    "Teams": [
      {
        "TeamId": "5cd4bbae-d4c0-497c-a5fa-14e7df7227db",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "Users": [],
        "AssetGroups": [
          {
            "AssetGroupId": "35a87e8e-ab5d-45ac-82d4-b280e7eb732b",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "MeasurementValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "0acdf825-cece-4577-9e59-f108d38d06cc",
            "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
            "LastModifiedUser": "sample string 6"
          },
          {
            "AssetGroupId": "35a87e8e-ab5d-45ac-82d4-b280e7eb732b",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "MeasurementValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "0acdf825-cece-4577-9e59-f108d38d06cc",
            "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
            "LastModifiedUser": "sample string 6"
          }
        ],
        "SourceSystemId": "sample string 3",
        "CompanyId": "6c4684c2-1532-4e25-9aa7-f8511870bd1a",
        "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
        "LastModifiedUser": "sample string 6"
      },
      {
        "TeamId": "5cd4bbae-d4c0-497c-a5fa-14e7df7227db",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "Users": [],
        "AssetGroups": [
          {
            "AssetGroupId": "35a87e8e-ab5d-45ac-82d4-b280e7eb732b",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "MeasurementValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "0acdf825-cece-4577-9e59-f108d38d06cc",
            "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
            "LastModifiedUser": "sample string 6"
          },
          {
            "AssetGroupId": "35a87e8e-ab5d-45ac-82d4-b280e7eb732b",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "MeasurementValueNeededDate": "2022-11-26T16:36:31.0018708-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "0acdf825-cece-4577-9e59-f108d38d06cc",
            "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
            "LastModifiedUser": "sample string 6"
          }
        ],
        "SourceSystemId": "sample string 3",
        "CompanyId": "6c4684c2-1532-4e25-9aa7-f8511870bd1a",
        "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
        "LastModifiedUser": "sample string 6"
      }
    ]
  },
  "DueDate": "2022-11-26T16:36:31.0018708-08:00",
  "CompletedDate": "2022-11-26T16:36:31.0018708-08:00",
  "Priority": 1,
  "HasAttachments": true,
  "Attachments": [
    {
      "TaskAttachmentId": "8bf24907-354a-4d9c-a05f-03a0728ffcfc",
      "Name": "sample string 1",
      "FileType": "sample string 2",
      "FileSize": 1,
      "Content": "QEA=",
      "SourceSystemId": "sample string 3"
    },
    {
      "TaskAttachmentId": "8bf24907-354a-4d9c-a05f-03a0728ffcfc",
      "Name": "sample string 1",
      "FileType": "sample string 2",
      "FileSize": 1,
      "Content": "QEA=",
      "SourceSystemId": "sample string 3"
    }
  ],
  "Values": [
    {
      "TaskFieldValueId": "1e1d979e-fdc5-4896-96b0-fd19f216fa47",
      "TaskTypeField": {
        "TaskTypeFieldId": "73c60a75-f32a-49f0-a83b-1c76a4f300e1",
        "Section": {
          "TaskTypeSectionId": "6e59cba1-de6c-4039-9547-868313a4fcf8",
          "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": "063c3ae5-4c7c-4f9c-9eef-607cc05e5364",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "0a051c16-b8bc-4e39-aa0f-34711bc30d5b",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "12f3590a-f3dd-49cd-979b-aaf256131825",
          "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          "sample string 1",
          "sample string 2"
        ],
        "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"
      },
      "SectionIndex": 1,
      "FieldIndex": 1,
      "FileName": "sample string 1",
      "FileType": "sample string 2",
      "FileSize": 1,
      "FileContent": "QEA=",
      "ValueText": "sample string 3",
      "IsValid": true,
      "IsValidMessage": "sample string 5",
      "SourceSystemId": "sample string 6"
    },
    {
      "TaskFieldValueId": "1e1d979e-fdc5-4896-96b0-fd19f216fa47",
      "TaskTypeField": {
        "TaskTypeFieldId": "73c60a75-f32a-49f0-a83b-1c76a4f300e1",
        "Section": {
          "TaskTypeSectionId": "6e59cba1-de6c-4039-9547-868313a4fcf8",
          "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": "063c3ae5-4c7c-4f9c-9eef-607cc05e5364",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "0a051c16-b8bc-4e39-aa0f-34711bc30d5b",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "12f3590a-f3dd-49cd-979b-aaf256131825",
          "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2022-11-26T16:36:31.0018708-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          "sample string 1",
          "sample string 2"
        ],
        "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"
      },
      "SectionIndex": 1,
      "FieldIndex": 1,
      "FileName": "sample string 1",
      "FileType": "sample string 2",
      "FileSize": 1,
      "FileContent": "QEA=",
      "ValueText": "sample string 3",
      "IsValid": true,
      "IsValidMessage": "sample string 5",
      "SourceSystemId": "sample string 6"
    }
  ],
  "SourceSystemId": "sample string 4",
  "CompanyId": "f9799aa9-7aed-4e26-9d86-f79c9b5336ca",
  "CreateDate": "2022-11-26T16:36:31.0018708-08:00",
  "CreateUser": "sample string 6",
  "LastModifiedDate": "2022-11-26T16:36:31.0018708-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"
}