provider messaging_templates PUT /api/environments/{environment_id}/messaging_templates/{id}/
@utdk/posthog /api/environments/{environment_id}/messaging_templates/{id}/
environments_messaging_templates_update
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
id path required
A UUID string identifying this message template.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsMessagingTemplatesUpdate
PUT/api/environments/{environment_id}/messaging_templates/{id}/

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

required

A UUID string identifying this message template.

Input

required
required

Human-readable template name shown in the library.

What the template is for and when to use it.

required
required

Template content keyed by channel. Replaced as a whole on update, not merged.

required

Message channel of the template. Currently 'email'.

Message category ID to file the template under. Must belong to the same project.

Soft-delete flag. Set true to remove the template from the library.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsMessagingTemplatesUpdate()