COPS

Set account default campaign

PUT
/accounts/{accountId}/default-campaign

Set or clear (campaignId: null) the single default campaign for a tracked account. New videos synced from the account are assigned to this campaign; the account's currently-unassigned videos are assigned immediately. Switching the default is forward-only — videos already assigned to another campaign stay there. Pass an accountId from list_accounts and a campaignId from list_campaigns.

Authorization

apiKeyAuth
headerx-api-key<token>

API key for authentication. Keys are prefixed with cops_.

Path Parameters

accountId*string
Match^acct_.+[\s\S]*$

Request Body

application/json
  1. body
campaignId*|null

Response Body

Response schema unavailable.

Example Request
curl -X PUT 'https://cops.app/api/brand/accounts/string/default-campaign' \  -H 'Content-Type: application/json' \  -d '{  "campaignId": "string"}'
Example Response200
Empty