Mutation
mutation CreateTask($input: CreateTaskInput!) {
createTask(input: $input) {
task {
id
ref
title
description
status
priority
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"title": "string"
}
}Response
{
"data": {
"createTask": {
"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
createTask
Create a new task. Only title is required; description, status, priority, assignee, and a parent companyId or tenantId are all optional. A task may be linked to either a company or a tenant, but not both. Requires the task:create permission.
MUTATION
createTask(input: CreateTaskInput!): CreateTaskOutput!Arguments
input
required
Returns
task
error
Mutation
mutation CreateTask($input: CreateTaskInput!) {
createTask(input: $input) {
task {
id
ref
title
description
status
priority
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"title": "string"
}
}Response
{
"data": {
"createTask": {
"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?

