Update an owned campaign
PATCH
/campaigns/{campaign_id}Updates only supplied campaign metadata, tracking cadence or state, platform CPM values, or EMV override. Participants, content, public-report settings, refresh actions, lifecycle actions, and deletion are not supported.
Authorization
ApiKey AuthorizationBearer <token>
Public API key from creator or agency settings. The complete secret is shown once.
In: header
Path Parameters
campaign_id*string
Match
^[a-fA-F0-9]{24}$Header Parameters
Idempotency-Key*string
Unique value up to 128 characters. Matching requests are replayed for 24 hours.
Length
1 <= length <= 128Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Properties
1 <= propertiesResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PATCH "https://example.com/campaigns/string" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{}'{ "meta": {}, "request_id": "string", "data": { "id": "string", "owner_type": "creator", "owner_id": "string", "name": "string", "description": "string", "status": "active", "starts_at": "2019-08-24T14:15:22Z", "ends_at": "2019-08-24T14:15:22Z", "refresh_cadence": "daily", "refresh_state": "active", "cpm": { "instagram": 0, "tiktok": 0, "youtube": 0, "twitter": 0 }, "emv_override": 0, "public_report": { "enabled": true, "access_mode": "link", "slug": "string", "share_url": "http://example.com" }, "editor_url": "http://example.com", "summary": { "creators": 0, "content": 0, "views": 0, "impressions": 0, "engagements": 0, "engagement_rate": 0, "emv": 0 }, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }}