---
title: "Update template status"
method: PATCH
path: "/v3/gfw/templates/{templateId}/status"
tags: ["Templates"]
---

# Update template status

`PATCH /v3/gfw/templates/{templateId}/status`

Update the status of a given template

## Request body

- object
  - `status` 'published' | 'unpublished', required

## Response `200`

Single Template

- object
  - `data` object
    - `id` string
    - `type` string
    - `attributes` TemplateModel
      - `name` string
      - `user` string
      - `languages` string[]
      - `defaultLanguage` string
      - `public` boolean
      - `status` string
      - `createdAt` string
      - `questions` QuestionModel[]
        - `type` string, required
        - `label` object, required
          - `en` string
        - `name` string, required
        - `defaultValue` string
        - `values` string, required
        - `required` boolean, required
        - `order` number
        - `childQuestions` ChildQuestionModel
          - `type` string, required
          - `label` object, required
            - `en` string
          - `name` string, required
          - `defaultValue` string
          - `values` string, required
          - `required` boolean, required
          - `order` number
          - `conditionalValue` number
          - `maxImageCount` number
        - `maxImageCount` number
      - `answersCount` integer
      - `isLatest` boolean
      - `editGroupId` string
      - `areas` object[]
        - `id` string
        - `name` string

---

[API](https://skmtc.dev/wri/apis/fw-core.md) · [All operations](https://skmtc.dev/wri/apis/fw-core/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wri/fw-core/revisions/400d22a78fbd/schema)
