UpdateAccounts

View as Markdown
## Replaces the entire list of LinkedIn sender accounts assigned to a campaign. This is a **full replacement**, not a merge. Any account not in the new list will be removed. On a PAUSED campaign, leads assigned to a removed account will be stopped and cannot be resumed. Allowed statuses: DRAFT, SCHEDULED, PAUSED. Returns 400 for any other status (e.g. IN_PROGRESS, FINISHED). For SCHEDULED campaigns the campaign reverts to DRAFT. ### Body Parameters - **campaignId** _(long, required)_: The campaign to update. - **linkedInAccountIds** _(int[], required)_: Full replacement list of sender account IDs. 1-100 items. All accounts must exist and have valid auth.

Headers

X-API-KEYstringOptional

API key header using this scheme. Example: ā€œX-API-KEY: {API_KEY}ā€

Request

This endpoint expects an object.
campaignIdintegerRequired
linkedInAccountIdslist of integersRequired