Update a CTA
ctas_update[writes flayr data · write scope] Edits a CTA, its status or its goal fields (goalKey, isPrimary, paidEligible, adButton). New copy or a new destination is claims-checked again; a CTA whose claims block cannot be approved. Free. Needs the Pro plan or higher.
(Wraps PATCH /api/v2/hook-studio/ctas.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "ctas_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| card | No | ||
| line | No | ||
| status | No | ||
| brandId | No | A brand id from GET /api/v2/brands. Required for an account-wide key; a brand-bound key may omit it. | |
| goalKey | No | The goal this CTA serves, a short slug such as `tech-checkup`. | |
| offerId | No | ||
| adButton | No | The ad button. Default: the ads config default CTA. | |
| isPrimary | No | The brand's primary goal. Setting it demotes the previous primary. | |
| platforms | No | ||
| destination | No | An https link, or "bio" for the link in bio. | |
| paidEligible | No | Ads may use this CTA. Default: true for a primary, false otherwise. |