← All types
ProductionIn Input object

CreateTaskInput

Input for creating a task

Fields

type

TaskType!Required

Task type

Possible values (3)
MANUAL

A manual task with custom outcomes

APPROVAL

An approval task from a workflow

AGENT_AUTOMATED

A task automatically resolved by an AI agent

title

String!Required

Task title

Optional description

Task definition for manual tasks

Linked resource type

Linked resource ID

Assign to a specific user

Assign to a team

priority

IntOptional

Priority level (default 0)

dueAt

ISO8601Optional

Due date (ISO8601)

subjectId

IDOptional

TypeID of the record this task is about (e.g. a job or an order). Takes precedence over resourceType/resourceId when reading subjectId.

Referenced by (1)
Exact type SDL
"""Input for creating a task"""
input CreateTaskInput {
  """Task type"""
  type: TaskType!
  """Task title"""
  title: String!
  """Optional description"""
  description: String
  """Task definition for manual tasks"""
  taskDefinitionId: TaskDefinitionID
  """Linked resource type"""
  resourceType: String
  """Linked resource ID"""
  resourceId: String
  """Assign to a specific user"""
  assignedUserId: UserID
  """Assign to a team"""
  assignedTeamId: TeamID
  """Priority level (default 0)"""
  priority: Int
  """Due date (ISO8601)"""
  dueAt: ISO8601
  """
  TypeID of the record this task is about (e.g. a job or an order). Takes precedence over resourceType/resourceId when reading subjectId.
  """
  subjectId: ID
}