---
title: "Publish templates in bulk"
method: PUT
path: "/api/v1/templates/_publish"
tags: ["Template"]
---

# Publish templates in bulk

`PUT /api/v1/templates/_publish`

Publishes one or more templates identified by their identifiers. The user must have Publish permissions on each template, and the templates must not be archived. Returns a bulk result with success count and details of any failures.

## Response `200`

Bulk publish operation completed. Check the response body for individual success/failure details.

- ResponseEntityBulkResultView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` BulkResultView
    - `successCount` integer
    - `skippedCount` integer
    - `fails` FailedResultView[]
      - `element` string
      - `errorMessage` string
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Request body is empty or not a valid list of identifiers
- `401` — Authentication required

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
