Update stream event template

Description

Summary: Updates an existing stream event template by its ID via the TextPeak API.
Details: This endpoint modifies the properties of a specific stream event template identified by its unique ID. You can update any combination of the template's name, associated stream, message text, event key, and activation status. This is useful for correcting template content, reassigning a template to a different stream, changing the trigger key, or enabling/disabling a template without deleting and recreating it. The request body should contain the full updated representation of the template. Authentication is performed via a TextPeak API key passed in the Authorization header.

Authentication & Scopes

Authentication is handled via a TextPeak API key provided in the Authorization header. No OAuth scopes are defined; access is granted or denied based on the validity of the API key.

MethodDetails
API KeyPass your TextPeak API key directly in the Authorization header value.

Headers

HeaderRequiredDescription
AuthorizationYesYour TextPeak API key that authenticates the request.
Content-TypeYesMust be set to application/json. The API only accepts JSON-formatted request bodies.
acceptYesMust be set to application/json. Indicates that the client expects a JSON response.

Parameters

Path Variables

VariableTypeRequiredDescription
idstringYesThe unique identifier of the stream event template to update.

Request Body

The request body is a JSON object containing the updated fields for the stream event template.

FieldTypeRequiredDescription
namestringYesThe updated human-readable name for the stream event template.
streamIdintegerYesThe numeric ID of the stream this event template belongs to. Change this to reassign the template to a different stream.
textstringYesThe updated message text content of the template.
eventKeystringYesThe updated unique key used to identify and trigger this event template programmatically.
activatedbooleanYesWhether the template should be active (true) or disabled (false).

Examples

This endpoint has a saved example demonstrating usage:

  • Update stream event template — Updating the properties of an existing stream event template by its ID.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params
boolean
string
string
number
string
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json