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

# Publish Template

> Publishes or unpublishes a checklist template by its ID. This is a toggle action.



## OpenAPI

````yaml PUT /api/v1/task/checklists/{id}/toggle-publish
openapi: 3.1.0
info:
  title: Xenia Team API - Publish Template
  version: 1.0.0
  description: Toggle publish state of a checklist template.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/task/checklists/{id}/toggle-publish:
    put:
      tags:
        - Checklists
      summary: Toggle Publish State of Checklist Template
      description: >-
        Publishes or unpublishes a checklist template by its ID. This is a
        toggle action.
      operationId: togglePublishChecklistTemplate
      parameters:
        - name: id
          in: path
          required: true
          description: Checklist Template ID
          schema:
            type: string
            format: uuid
            example: 921f520c-e4d7-4490-8bc1-f9585f98b6b2
        - name: workspace-id
          in: header
          required: true
          description: UUID of the workspace.
          schema:
            type: string
            format: uuid
            example: cb363f7e-c52a-4478-911d-f6a6f791090e
      responses:
        '200':
          description: Checklist publish state toggled successfully
          content:
            application/json:
              example:
                data: {}
                extra_meta:
                  message: Checklist published
        '400':
          description: Bad Request - Invalid template ID format.
        '401':
          description: Unauthorized - Missing or invalid authentication.
        '403':
          description: Forbidden - Insufficient permissions to publish template.
        '404':
          description: Not Found - Template does not exist.
        '500':
          description: Internal Server Error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: Authorization
    clientSecret:
      type: apiKey
      in: header
      name: platform

````