# dotCMS Template API

**Canonical:** https://apis.io/apis/dotcms/dotcms-template-api/  
**Provider:** dotCMS — https://apis.io/providers/dotcms/  
**Base URL:** https://demo.dotcms.com/api  
**Documentation:** https://dev.dotcms.com/docs/build/apis/api-basics/rest-apis

dotCMS Template API is one of 73 APIs that [dotCMS](https://apis.io/providers/dotcms/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Templates. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

Template CRUD, publish, archive, and layout management endpoints

## Operations (14)

| Method | Path | Summary |
|---|---|---|
| PUT | `/api/v1/templates/_archive` | Archive templates in bulk |
| PUT | `/api/v1/templates/{templateId}/_copy` | Copy a template |
| GET | `/api/v1/templates` | List templates |
| PUT | `/api/v1/templates` | Update an existing template |
| POST | `/api/v1/templates` | Create a new template |
| DELETE | `/api/v1/templates` | Delete templates in bulk |
| POST | `/api/v1/templates/image` | Get the image associated with a template |
| GET | `/api/v1/templates/{templateId}/live` | Get live version of a template |
| GET | `/api/v1/templates/{templateId}/working` | Get working version of a template |
| PUT | `/api/v1/templates/_publish` | Publish templates in bulk |
| PUT | `/api/v1/templates/_savepublish` | Save and publish a template |
| PUT | `/api/v1/templates/draft` | Save a template as draft |
| PUT | `/api/v1/templates/_unarchive` | Unarchive templates in bulk |
| PUT | `/api/v1/templates/_unpublish` | Unpublish templates in bulk |

## Machine-readable artifacts (7)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/dotcms/refs/heads/main/openapi/dotcms-template-api-openapi.yml
- **Documentation** — https://dev.dotcms.com/docs/build/apis/api-basics/rest-apis
- **DeveloperPortal** — https://dev.dotcms.com/
- **APIReference** — https://dev.dotcms.com/docs/build/apis/rest-apis/api-playground
- **ErrorCatalog** — https://raw.githubusercontent.com/api-evangelist/dotcms/refs/heads/main/errors/dotcms-problem-types.yml
- **DataModel** — https://raw.githubusercontent.com/api-evangelist/dotcms/refs/heads/main/data-model/dotcms-data-model.yml
- **Conventions** — https://raw.githubusercontent.com/api-evangelist/dotcms/refs/heads/main/conventions/dotcms-conventions.yml

## Other dotCMS APIs (12)

- [dotCMS GraphQL API](https://apis.io/apis/dotcms/graphql/)
- [dotCMS Accessibility Agent API](https://apis.io/apis/dotcms/dotcms-accessibility-agent-api/)
- [dotCMS Accessibility Checker API](https://apis.io/apis/dotcms/dotcms-accessibility-checker-api/)
- [dotCMS Administration API](https://apis.io/apis/dotcms/dotcms-administration-api/)
- [dotCMS AI API](https://apis.io/apis/dotcms/dotcms-ai-api/)
- [dotCMS Announcements API](https://apis.io/apis/dotcms/dotcms-announcements-api/)
- [dotCMS API Token API](https://apis.io/apis/dotcms/dotcms-api-token-api/)
- [dotCMS Apps API](https://apis.io/apis/dotcms/dotcms-apps-api/)
- [dotCMS Authentication API](https://apis.io/apis/dotcms/dotcms-authentication-api/)
- [dotCMS Browser Tree API](https://apis.io/apis/dotcms/dotcms-browser-tree-api/)
- [dotCMS Bundle API](https://apis.io/apis/dotcms/dotcms-bundle-api/)
- [dotCMS Cache Management API](https://apis.io/apis/dotcms/dotcms-cache-management-api/)

## Tags

Templates

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/dotcms/dotcms-template-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/dotcms/.
