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

# Update a task template

> Tags, assignees and actions replace the stored list when sent.



## OpenAPI

````yaml /api-reference/endpoint/workspaces/openapi.json patch /workspaces/task-template/{id}
openapi: 3.0.3
info:
  title: Workspaces Service API
  version: 1.0.0
  description: API for managing workspaces, tasks, and comments
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
paths:
  /workspaces/task-template/{id}:
    patch:
      summary: Update a task template
      description: Tags, assignees and actions replace the stored list when sent.
      operationId: updateTaskTemplate
      parameters:
        - name: id
          in: path
          required: true
          description: Template id.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTaskTemplateRequest'
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskTemplate'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    UpdateTaskTemplateRequest:
      type: object
      properties:
        name:
          type: string
          description: Shown in the template picker and used as the new task's title.
        description:
          type: string
        vertical:
          type: string
          description: Groups templates. Empty means generic.
        priority:
          type: string
        tags:
          type: array
          items:
            type: string
        folder:
          type: string
        reporter:
          type: string
        assignees:
          type: array
          items:
            type: string
        estimate:
          type: object
          properties:
            time_in_seconds:
              type: integer
        task_actions:
          type: array
          items:
            type: object
            additionalProperties: true
            required:
              - kind
              - description
            description: A form, document or chat action seeded onto the new task.
            properties:
              kind:
                type: string
                enum:
                  - form
                  - document
                  - chat
              description:
                type: string
      description: >-
        Every field is optional. Tags, assignees and `task_actions` replace the
        stored list when sent.
    TaskTemplate:
      type: object
      required:
        - name
      properties:
        id:
          type: string
          readOnly: true
          description: Server-minted, `tt_` followed by random characters.
        name:
          type: string
          description: Shown in the template picker and used as the new task's title.
        description:
          type: string
        vertical:
          type: string
          description: Groups templates. Empty means generic.
        priority:
          type: string
        tags:
          type: array
          items:
            type: string
        folder:
          type: string
        reporter:
          type: string
        assignees:
          type: array
          items:
            type: string
        estimate:
          type: object
          properties:
            time_in_seconds:
              type: integer
        task_actions:
          type: array
          items:
            type: object
            additionalProperties: true
            required:
              - kind
              - description
            description: A form, document or chat action seeded onto the new task.
            properties:
              kind:
                type: string
                enum:
                  - form
                  - document
                  - chat
              description:
                type: string
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: Stable machine code. Branch on this, not on `error`.
      required:
        - error
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT Authorization header using the Bearer scheme
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````

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