DELETE Tasks
Deletes the given task.
Request Information
URI Parameters
None.
Body Parameters
The task to delete.
TaskName | Description | Type | Additional 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": "980f6c5e-4c77-4092-b16c-3c2e04751af1", "Asset": { "AssetId": "6cfb74ff-f77c-454e-8f1e-1b0d38288f70", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "29384ab6-18eb-4da0-8b7b-6e6af9db5c4a", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "ea868538-a703-4456-9744-adf113408e96", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "e3689d5c-f4e5-4e55-8373-2704fa4a02b6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "MeasurementValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "SourceSystemId": "sample string 3", "CompanyId": "c5ce5a37-ed2f-4c25-9bc1-b147912496cf", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "MeasurementValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "6ebb8a32-e28b-4b7b-92df-b0538216dc28", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 8" }, "Title": "sample string 1", "Description": "sample string 2", "TaskStatusType": { "TaskStatusTypeId": "9c820e52-707a-495b-a1bb-402bf729a675", "Name": "sample string 1", "CompanyId": "27bc1936-96e1-433c-b416-eeee62de6112" }, "TaskCategory": { "TaskCategoryId": "4543ba2a-6944-404a-95cc-43877653f3ef", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "b53f2527-0eac-41fc-a13d-bd5042d1d9b5", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 5" }, "TaskType": { "TaskTypeId": "125df88e-a0fc-4b12-9ab2-1a345135f4f3", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "26a1e1c6-0fc8-46a4-872c-f6ffccd26bd1", "Section": { "TaskTypeSectionId": "d9571c55-13a6-44cb-b9d3-c1d8d91156f6", "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": "c9755b5d-3157-44a4-b23f-74efd3477b8d", "Name": "sample string 1" }, "Unit": { "UnitId": "71651dff-1ded-43f2-8c5c-2c9a12fb192f", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "17814e38-8cda-4c6e-a116-b3c8c319ac84", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-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": "26a1e1c6-0fc8-46a4-872c-f6ffccd26bd1", "Section": { "TaskTypeSectionId": "d9571c55-13a6-44cb-b9d3-c1d8d91156f6", "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": "c9755b5d-3157-44a4-b23f-74efd3477b8d", "Name": "sample string 1" }, "Unit": { "UnitId": "71651dff-1ded-43f2-8c5c-2c9a12fb192f", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "17814e38-8cda-4c6e-a116-b3c8c319ac84", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-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 4", "CompanyId": "dbe2ba58-e3a1-449b-8512-07373aca8564", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 7" }, "AssignedOnDate": "2024-12-21T19:07:59.2184075-08:00", "AssignedToUser": { "UserId": "16a2900e-1fb7-4eff-af78-55da614a2c6a", "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": "b6a97e50-e711-45fc-96eb-c03e5fb1cb31", "Teams": [ { "TeamId": "2d4a3d5c-97a7-4eb2-9a06-d28378d40bb8", "Name": "sample string 1", "Description": "sample string 2", "Users": [], "AssetGroups": [ { "AssetGroupId": "e3689d5c-f4e5-4e55-8373-2704fa4a02b6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "MeasurementValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "SourceSystemId": "sample string 3", "CompanyId": "c5ce5a37-ed2f-4c25-9bc1-b147912496cf", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" }, { "AssetGroupId": "e3689d5c-f4e5-4e55-8373-2704fa4a02b6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "MeasurementValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "SourceSystemId": "sample string 3", "CompanyId": "c5ce5a37-ed2f-4c25-9bc1-b147912496cf", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" } ], "SourceSystemId": "sample string 3", "CompanyId": "32e7a11e-6900-41e8-81d1-6094bc3f41bc", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" }, { "TeamId": "2d4a3d5c-97a7-4eb2-9a06-d28378d40bb8", "Name": "sample string 1", "Description": "sample string 2", "Users": [], "AssetGroups": [ { "AssetGroupId": "e3689d5c-f4e5-4e55-8373-2704fa4a02b6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "MeasurementValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "SourceSystemId": "sample string 3", "CompanyId": "c5ce5a37-ed2f-4c25-9bc1-b147912496cf", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" }, { "AssetGroupId": "e3689d5c-f4e5-4e55-8373-2704fa4a02b6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "MeasurementValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "SourceSystemId": "sample string 3", "CompanyId": "c5ce5a37-ed2f-4c25-9bc1-b147912496cf", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" } ], "SourceSystemId": "sample string 3", "CompanyId": "32e7a11e-6900-41e8-81d1-6094bc3f41bc", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" } ] }, "AssignedByUser": { "UserId": "16a2900e-1fb7-4eff-af78-55da614a2c6a", "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": "b6a97e50-e711-45fc-96eb-c03e5fb1cb31", "Teams": [ { "TeamId": "2d4a3d5c-97a7-4eb2-9a06-d28378d40bb8", "Name": "sample string 1", "Description": "sample string 2", "Users": [], "AssetGroups": [ { "AssetGroupId": "e3689d5c-f4e5-4e55-8373-2704fa4a02b6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "MeasurementValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "SourceSystemId": "sample string 3", "CompanyId": "c5ce5a37-ed2f-4c25-9bc1-b147912496cf", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" }, { "AssetGroupId": "e3689d5c-f4e5-4e55-8373-2704fa4a02b6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "MeasurementValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "SourceSystemId": "sample string 3", "CompanyId": "c5ce5a37-ed2f-4c25-9bc1-b147912496cf", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" } ], "SourceSystemId": "sample string 3", "CompanyId": "32e7a11e-6900-41e8-81d1-6094bc3f41bc", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" }, { "TeamId": "2d4a3d5c-97a7-4eb2-9a06-d28378d40bb8", "Name": "sample string 1", "Description": "sample string 2", "Users": [], "AssetGroups": [ { "AssetGroupId": "e3689d5c-f4e5-4e55-8373-2704fa4a02b6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "MeasurementValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "SourceSystemId": "sample string 3", "CompanyId": "c5ce5a37-ed2f-4c25-9bc1-b147912496cf", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" }, { "AssetGroupId": "e3689d5c-f4e5-4e55-8373-2704fa4a02b6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "MeasurementValueNeededDate": "2024-12-21T19:07:59.2184075-08:00", "SourceSystemId": "sample string 3", "CompanyId": "c5ce5a37-ed2f-4c25-9bc1-b147912496cf", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" } ], "SourceSystemId": "sample string 3", "CompanyId": "32e7a11e-6900-41e8-81d1-6094bc3f41bc", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 6" } ] }, "DueDate": "2024-12-21T19:07:59.2184075-08:00", "CompletedDate": "2024-12-21T19:07:59.2184075-08:00", "Priority": 1, "HasAttachments": true, "Attachments": [ { "TaskAttachmentId": "287a44aa-45a0-4ef6-9164-a4f4164569f1", "Name": "sample string 1", "FileType": "sample string 2", "FileSize": 1, "Content": "QEA=", "SourceSystemId": "sample string 3" }, { "TaskAttachmentId": "287a44aa-45a0-4ef6-9164-a4f4164569f1", "Name": "sample string 1", "FileType": "sample string 2", "FileSize": 1, "Content": "QEA=", "SourceSystemId": "sample string 3" } ], "Values": [ { "TaskFieldValueId": "ce7046de-accf-4be9-9c33-bced7b1ac355", "TaskTypeField": { "TaskTypeFieldId": "26a1e1c6-0fc8-46a4-872c-f6ffccd26bd1", "Section": { "TaskTypeSectionId": "d9571c55-13a6-44cb-b9d3-c1d8d91156f6", "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": "c9755b5d-3157-44a4-b23f-74efd3477b8d", "Name": "sample string 1" }, "Unit": { "UnitId": "71651dff-1ded-43f2-8c5c-2c9a12fb192f", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "17814e38-8cda-4c6e-a116-b3c8c319ac84", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-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": "ce7046de-accf-4be9-9c33-bced7b1ac355", "TaskTypeField": { "TaskTypeFieldId": "26a1e1c6-0fc8-46a4-872c-f6ffccd26bd1", "Section": { "TaskTypeSectionId": "d9571c55-13a6-44cb-b9d3-c1d8d91156f6", "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": "c9755b5d-3157-44a4-b23f-74efd3477b8d", "Name": "sample string 1" }, "Unit": { "UnitId": "71651dff-1ded-43f2-8c5c-2c9a12fb192f", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "17814e38-8cda-4c6e-a116-b3c8c319ac84", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:07:59.2184075-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": "b57057ac-1ded-48f5-931b-2534d5c8a098", "CreateDate": "2024-12-21T19:07:59.2184075-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:07:59.2184075-08:00", "LastModifiedUser": "sample string 7" }
Response Information
Resource Description
Name | Description | Type | Additional information |
---|---|---|---|
Data | Object |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": {}, "Total": 1, "Message": "sample string 2" }