---
title: "Get working version of a template"
method: GET
path: "/api/v1/templates/{templateId}/working"
tags: ["Template"]
---

# Get working version of a template

`GET /api/v1/templates/{templateId}/working`

Returns the working (latest draft) version of a template identified by its identifier. Throws a 404 error if the template does not exist.

## Path parameters

- `templateId` string, required

## Response `200`

Working template version returned successfully

- ResponseEntityTemplateView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` TemplateView
    - `identifier` string
    - `inode` string
    - `categoryId` string
    - `body` string
    - `selectedimage` string
    - `image` string
    - `drawed` boolean
    - `deleted` boolean
    - `live` boolean
    - `locked` boolean
    - `lockedBy` string
    - `working` boolean
    - `hasLiveVersion` boolean
    - `showOnMenu` boolean
    - `drawedBody` string
    - `countAddContainer` integer
    - `countContainers` integer
    - `headCode` string
    - `theme` string
    - `themeName` string
    - `footer` string
    - `friendlyName` string
    - `header` string
    - `modDate` string, date-time
    - `modUser` string
    - `owner` string
    - `name` string
    - `title` string
    - `sortOrder` integer
    - `canRead` boolean
    - `canWrite` boolean
    - `canPublish` boolean
    - `layout` TemplateLayoutView
      - `width` string
      - `title` string
      - `header` boolean
      - `footer` boolean
      - `body` BodyView
        - `rows` TemplateLayoutRowView[]
          - `styleClass` string
          - `columns` TemplateLayoutColumnView[]
            - `containers` ContainerUUID[]
              - …
            - `width` integer
            - `leftOffset` integer
            - `styleClass` string
            - `metadata` object
          - `metadata` object
      - `sidebar` SidebarView
        - `containers` ContainerUUID[]
          - `identifier` string
          - `uuid` string
          - `historyUUIDs` string[]
        - `location` string
        - `width` string
    - `containers` object
    - `themeInfo` ThemeView
      - `path` string
      - `defaultFileType` string
      - `filesMasks` string
      - `getiDate` string, date-time
      - `hostId` string
      - `identifier` string
      - `inode` string
      - `modDate` string, date-time
      - `name` string
      - `showOnMenu` boolean
      - `sortOrder` integer
      - `title` string
      - `type` string
    - `hostName` string
    - `hostId` string
    - `fullTitle` string
    - `htmlTitle` string
    - `new` boolean
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `401` — Authentication required
- `404` — Working version of the template does not exist

---

[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)
