COPS

Update campaign

PATCH
/campaigns/{id}

Update a campaign in your organization (only the fields you pass change: name, url, description, logo, color, startDate, active, managerUserId, payoutStructureId, requiresDraftApproval, links). links is the full ordered list of helpful links ({ title, url }, at most 10, http or https only) creators see in onboarding and on the campaign page; it replaces the existing list. requiresDraftApproval true flags posts published since it was turned on that do not match an approved draft. Passing true while it is already on keeps the original start date; passing false clears it, so turning it on again later starts from that later date. Pass "" or null for an optional field to clear it. Pass an id from list_campaigns.

Authorization

apiKeyAuth
headerx-api-key<token>

API key for authentication. Keys are prefixed with cops_.

Path Parameters

id*string
Match^prj_.+[\s\S]*$

Request Body

application/json
  1. body
name?string
Length1 <= length
url?unknown||null
description?unknown|string|null
logo?unknown||null
color?unknown|string|null
startDate?|null
platforms?array<>
payoutStructureId?unknown||null
managerUserId?unknown||null
active?boolean
requiresDraftApproval?boolean
links?array<>
Itemsitems <= 10

Response Body

Response schema unavailable.

Example Request
curl -X PATCH 'https://cops.app/api/brand/campaigns/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
Empty