---
title: "Edit a default or one of the account's own templates"
method: POST
path: "/outreach-templates/{template_id}"
tags: ["Case actions"]
---

# Edit a default or one of the account's own templates

`POST /outreach-templates/{template_id}`

## Request

- Base URL: `https://adslighthouse.com/api/v1`
- URL: `https://adslighthouse.com/api/v1/outreach-templates/{template_id}`
- Auth: HTTP bearer

Replaces a template's name, audience, stage, subject and body. Editing a default stores the account's own copy of it (delete_outreach_template restores the default). Placeholders: {{brand_name}}, {{brand_domain}}, {{trademark}}, {{advertiser_domain}}, {{affiliate_id}}, {{first_seen}}, {{last_seen}}, {{observation_count}}, {{search_terms}}, {{evidence_summary}}, {{today}}. Requires the write scope.

## Path parameters

- `template_id` string, required: The template id from list_outreach_templates.

## Request body

- object
  - `name` string, required
  - `audience` 'affiliate' | 'advertiser', required
  - `stage` 'first_notice' | 'reminder' | 'final_notice' | 'custom', required
  - `subject` string, required
  - `body` string, required

## Response `200`

Edit a default or one of the account's own templates

- object
  - `id` string, required: A default's key (such as affiliate-first-notice) or your template's id.
  - `name` string, required
  - `audience` 'affiliate' | 'advertiser', required
  - `stage` 'first_notice' | 'reminder' | 'final_notice' | 'custom', required
  - `subject` string, required
  - `body` string, required
  - `is_default` boolean, required
  - `edited` boolean, required: True for a default your account has edited.
  - `request_id` string

## Other responses

- `400`: Invalid parameters, cursor or body.
- `401`: Missing, invalid, expired or revoked credential.
- `403`: The credential lacks the write scope, the plan does not include the API, or the allowance is used up.
- `404`: Unknown project, keyword or run in this account.
- `409`: The idempotency key was already used for a different request.
- `429`: Rate limit reached. Retry after the Retry-After seconds.
- `503`: The requested service or file is temporarily unavailable.

---

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