Mutation
mutation UpdateTask($input: UpdateTaskInput!) {
updateTask(input: $input) {
task {
id
ref
title
description
status
priority
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"taskId": "id"
}
}Response
{
"data": {
"updateTask": {
"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
updateTask
Update an existing task. Only the fields you include are changed — omitted fields are left as-is. Setting companyId clears any existing tenantId and vice versa, since a task may be linked to at most one. Requires the task:edit permission.
MUTATION
updateTask(input: UpdateTaskInput!): UpdateTaskOutput!Arguments
input
required
Returns
task
error
Mutation
mutation UpdateTask($input: UpdateTaskInput!) {
updateTask(input: $input) {
task {
id
ref
title
description
status
priority
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"taskId": "id"
}
}Response
{
"data": {
"updateTask": {
"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?

