Update a campaign
Updates a draft campaign's content, from-identity, or audience. Only a draft can be edited.
Updates a draft campaign's content, from-identity, or audience. Only a draft can be edited.
Authorization
bearerAuth campaigns:updateA gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).
In: header
Scope: campaigns:update
Path Parameters
The campaign id.
Header Parameters
Optional. Send a unique key per logical operation to make retries safe: a retry with the same key replays the stored success for 14 days instead of re-running the write. Reusing a key with a different body returns 400.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Update a draft campaign's content, identity, audience, or A/B test.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
{ "id": "string", "name": "string", "status": "draft", "subject": "string", "preview_text": "string", "from_name": "string", "from_email": "string", "reply_to": "string", "sending_domain_ref": "string", "audience_list_id": "string", "design_json": null, "html": "string", "text_body": "string", "ab_config": null, "scheduled_at": "string", "sent_at": "string", "metadata": { "property1": "string", "property2": "string" }, "created_at": "string", "updated_at": "string"}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}Send a campaign test email POST
Delivers the campaign's current content to one address (subject prefixed with [Test]). Leaves the campaign, its audience, and its status untouched.
Create a condition report POST
Records a dated condition examination of an artwork. Creating one writes through to the artwork's current condition status/notes; it can bracket a custody transfer via `job_task_id` or stand alone.