Gallery Platform API
Reference

Update a campaign automation

Enables/disables an automation or patches its config. Omitted fields keep their current value; config keys shallow-merge.

PATCH
/gallery/campaign-automations/{automation}

Enables/disables an automation or patches its config. Omitted fields keep their current value; config keys shallow-merge.

Authorization

bearerAuth campaigns:update
AuthorizationBearer <token>

A gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).

In: header

Scope: campaigns:update

Path Parameters

automation*string

The automation path segment.

Header Parameters

Idempotency-Key?string

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.

Enable/disable an automation or patch its config. Omitted fields keep their current value.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "automation": "new_work_alert",  "enabled": true,  "config": {    "engaged_days": 1,    "fair_lead_days": 3  }}