Mutation
mutation DeleteTask($input: DeleteTaskInput!) {
deleteTask(input: $input) {
task {
id
ref
title
description
status
priority
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"taskId": "id"
}
}Response
{
"data": {
"deleteTask": {
"task": {
"id": "id",
"ref": "string",
"title": "string",
"description": "string",
"status": "TODO",
"priority": 1
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
deleteTask
Soft-delete a task. The task is removed from the active task list but remains queryable by ID with isDeleted: true. All thread links attached to the task are also deleted. Requires the task:delete permission.
MUTATION
deleteTask(input: DeleteTaskInput!): DeleteTaskOutput!Arguments
input
required
Returns
task
error
Mutation
mutation DeleteTask($input: DeleteTaskInput!) {
deleteTask(input: $input) {
task {
id
ref
title
description
status
priority
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"taskId": "id"
}
}Response
{
"data": {
"deleteTask": {
"task": {
"id": "id",
"ref": "string",
"title": "string",
"description": "string",
"status": "TODO",
"priority": 1
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

