> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Schedule a dormant task for later on a ticket you work

> Plan work for later on the ticket you are currently working: creates a dormant task that wakes on the given date, instead of writing "I will check back on Monday" in a comment and forgetting. System agent transport only — refused for a human MCP token or a REST API key. You may only schedule on a ticket you are the agent of, or whose task you are the agent of, onboarding tickets included. Pass the ticket id, never a task id: a task cannot hold a task. The task stays hidden for its whole life, asleep or awake: it never shows in the ticket `tasks`, its task lists or its status, and nothing has to close it. Until it wakes, `getTicket` lists it to you in `sleepingReminders`: check there before scheduling, and cancel one with `updateTaskStatus` (CANCELLED) to move or drop it. When it wakes, your run on the ticket receives its title and description — there is no separate prompt field, write what to do, not just a title. To create a task that should run now instead of later, use createTask.

Key: WriteScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json post /tasks/schedule
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /tasks/schedule:
    post:
      tags:
        - Tasks
      summary: Schedule a dormant task for later on a ticket you work
      description: >-
        Plan work for later on the ticket you are currently working: creates a
        dormant task that wakes on the given date, instead of writing "I will
        check back on Monday" in a comment and forgetting. System agent
        transport only — refused for a human MCP token or a REST API key. You
        may only schedule on a ticket you are the agent of, or whose task you
        are the agent of, onboarding tickets included. Pass the ticket id, never
        a task id: a task cannot hold a task. The task stays hidden for its
        whole life, asleep or awake: it never shows in the ticket `tasks`, its
        task lists or its status, and nothing has to close it. Until it wakes,
        `getTicket` lists it to you in `sleepingReminders`: check there before
        scheduling, and cancel one with `updateTaskStatus` (CANCELLED) to move
        or drop it. When it wakes, your run on the ticket receives its title and
        description — there is no separate prompt field, write what to do, not
        just a title. To create a task that should run now instead of later, use
        createTask.
      operationId: scheduleTask
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduleTaskBody'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskOutput_Output'
components:
  schemas:
    ScheduleTaskBody:
      type: object
      properties:
        ticketId:
          description: >-
            Id of the parent ticket: the 24-character `id` returned by
            getTickets or getTicket, not the reference displayed in the product
            (e.g. IT-1741). Must be a ticket you work: the ticket you are the
            agent of, or the ticket holding a task you are the agent of. Pass
            the ticket id, never a task id.
          type: string
          pattern: ^[a-f\d]{24}$
        title:
          type: string
          minLength: 1
        description:
          description: >-
            What to do when this task wakes up. This is the only context you
            will have then — there is no separate prompt field, so write it as
            full instructions, not a one-line reminder.
          type: string
          minLength: 1
        wakeDate:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
      required:
        - ticketId
        - title
        - description
        - wakeDate
    TaskOutput_Output:
      type: object
      properties:
        id:
          type: string
        ticketId:
          type: string
        title:
          type: string
        status:
          type: string
          enum:
            - PENDING
            - IN_PROGRESS
            - COMPLETED
            - CANCELLED
            - SCHEDULED
            - LOADING
            - SLEEPING
        priority:
          anyOf:
            - type: string
              enum:
                - LOW
                - MEDIUM
                - HIGH
            - type: 'null'
        dueDate:
          anyOf:
            - type: string
              format: date-time
              pattern: >-
                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
            - type: 'null'
        scheduleDate:
          description: Wake-up date of a SCHEDULED (dormant) task; null on any other status
          anyOf:
            - type: string
              format: date-time
              pattern: >-
                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
            - type: 'null'
        wakeDate:
          description: >-
            Pick-up date of a SLEEPING task, which nobody sees until then; null
            on any other status
          anyOf:
            - type: string
              format: date-time
              pattern: >-
                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
            - type: 'null'
        isManuallyCompletable:
          description: Whether a human (not only the system) may complete this task
          type: boolean
        isAdminManaged:
          description: Whether only an admin may assign this task or change its status
          type: boolean
        assignee:
          anyOf:
            - anyOf:
                - type: object
                  properties:
                    type:
                      type: string
                      const: EMAIL
                    email:
                      type: string
                  required:
                    - type
                    - email
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: EMPLOYEE
                    employeeId:
                      type: string
                  required:
                    - type
                    - employeeId
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: EXTERNAL_ADMIN
                    userId:
                      type: string
                  required:
                    - type
                    - userId
                  additionalProperties: false
            - type: 'null'
        tagIds:
          description: Ids of the tags attached to this task
          type: array
          items:
            type: string
        aiAgentId:
          description: Id of the AI agent handling it; null when no agent is on it
          default: null
          anyOf:
            - type: string
            - type: 'null'
        type:
          description: >-
            Type of a typed task, which Primo runs through its intent
            (EMPLOYEE_CREATION, EMAIL_ACCOUNT, EMAIL_ACCOUNT_SELECTION,
            SAAS_SELECTION, SAAS_PROVISIONING, EQUIPMENT_ORDER,
            OFFBOARDING_CONFIRMATION, DEVICE_HANDLING); null for a plain task
          default: null
          anyOf:
            - type: string
            - type: 'null'
        intentId:
          description: >-
            Id of a typed task's intent, to pass to its update and execute
            tools; null for a plain task
          default: null
          anyOf:
            - type: string
            - type: 'null'
      required:
        - id
        - ticketId
        - title
        - status
        - priority
        - dueDate
        - scheduleDate
        - wakeDate
        - isManuallyCompletable
        - isAdminManaged
        - assignee
        - tagIds
        - aiAgentId
        - type
        - intentId
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.