Change a campaign ad
change_campaign_ad, in Changes: A connection or key that may make changes. None spends credits; prepare_* and stage tools (research, brainstorm, write_script, review, generate_clip, voice, storyboard) prepare paid work for confirm_spend.
POST
Change one ad of a batch still being planned: write its opening in another hook formula, or as your own line with its hook kind; change its lead; or remove it from the batch (removed: false puts it back). A made batch's ads don't change.
apiKeyheader
AuthorizationBearer <token>An API key (prb_…) from Settings → Connections.
application/json- body
adId*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidchange*|||The tool's answer.
application/json- response
adId*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidcurl -X POST 'https://studio.probably.co/api/v1/tools/change_campaign_ad' \ -H "Authorization: Bearer $PROBABLY_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "adId": "4d241bcb-6046-42ff-be75-7b01bde3898e", "change": { "kind": "formula", "formula": "Call out the viewer" }}'{ "adId": "4d241bcb-6046-42ff-be75-7b01bde3898e"}