---
title: "Update stream event template"
method: PUT
path: "/stream_events/{id}"
tags: ["Stream event templates"]
---

# Update stream event template

`PUT /stream_events/{id}`

Update an event template. Only the fields you send are changed.

**Authentication:** TextPeak API key in the `Authorization` header (see **Authentication** in the API Overview).

## Request body

- object
  - `name` string, required — Template name.
  - `streamId` integer — ID of the stream to attach this template to.
  - `text` string — Template body with `[placeholder]` tokens.
  - `eventKey` string, required — Stable key used to trigger this template on the send endpoints.
  - `activated` boolean — Whether the template is active.

## Response `200`

The updated template.

- object
  - `id` integer — Unique template identifier.
  - `name` string — Template name.
  - `stream` object — The stream this template belongs to.
    - `id` integer — Stream identifier.
    - `name` string — Stream name.
  - `text` string — Template body with `[placeholder]` tokens.
  - `eventKey` string — Stable key used to trigger this template on the send endpoints.
  - `createdAt` string — When the template was created.
  - `activated` boolean — Whether the template is active.
  - `provider` string — Delivery provider, if set.
  - `externalStatus` string — Provider-side approval status, if applicable.
  - `language` string — Template language code.
  - `sections` object[] — Structured template sections (channel-specific).
  - `variablesMapping` object[] — Mapping of template variables.
  - `identifier` string — External identifier, if any.
  - `category` string — Template category, if any.

---

[API](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1.md) · [All operations](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/commpeak/dialer-api-v2-0-1/revisions/eacecf960bb6/schema)
