APICampaigns

Update a campaign

Partially updates an existing campaign.

PATCH
/v1/campaigns/{id}

Partially updates an existing campaign.

X-Api-Key<token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string",
    "description": "string",
    "campaign_type": "cold_outbound",
    "status": "draft",
    "sending_provider": "gtm_native",
    "provider_config": {
      "property1": null,
      "property2": null
    },
    "send_config": {
      "property1": null,
      "property2": null
    },
    "newsletter_config": null,
    "suppression_config": null,
    "enrichment_config": null,
    "include_unsubscribe_link": true,
    "auto_remove_on_reply": true,
    "track_opens": true,
    "track_clicks": true,
    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
    "created_at": "string",
    "updated_at": "string"
  }
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}