---
title: "Update Web Push Template"
method: PUT
path: "/v1/web-push-templates/{template_id}"
tags: ["web-push-templates"]
---

# Update Web Push Template

`PUT /v1/web-push-templates/{template_id}`

## Request

- Base URL: `https://api.elaan.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.elaan.io/v1/web-push-templates/{template_id}`
- Auth: none declared

## Path parameters

- `template_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- UpdateWebPushTemplateRequest
  - `title` string, required
  - `body` string
  - `icon` string
  - `badge` string
  - `url` string
  - `data` object
  - `language` string, nullable

## Response `200`

Successful Response

- WebPushTemplateResponse
  - `id` string, required
  - `notification_type_key` string, required
  - `branding_key` string, nullable, required
  - `language` string, nullable, required
  - `variables` string[], required
  - `title` string, required
  - `body` string, required
  - `icon` string, required
  - `badge` string, required
  - `url` string, required
  - `data` object, required

## Other responses

- `404`: No web-push template with this id
- `409`: Another template already occupies this notification type + brand + language slot
- `422`: The new content is empty

---

[API](https://skmtc.dev/elaan/apis/elaan-api.md) · [All operations](https://skmtc.dev/elaan/apis/elaan-api/llms.txt) · [OpenAPI document](https://skmtc.dev/elaan/apis/elaan-api/revisions/c96a7e6399aa?raw)
