v1Resources/Connections/postSelect an ad account

Select an ad account

Chooses which of a connected account's ad accounts is used when boosting posts. Only one ad account can be selected per connected account at a time.

post/api/v1/connections/ad-accounts/select
connections:write
Request body
connectionIdstringrequired
The connected account that owns the ad account. Required. Look it up with GET /api/v1/connections.
adAccountIdstringrequired
The ad account to select. Must belong to connectionId. Required.
Response
dataobjectoptional
selectedbooleanoptional
Always true on success.
Errors
400The request is missing a required parameter or is otherwise malformed.
401Missing, invalid, expired, or revoked API key.
403The key lacks the required scope, or isn't authorized for this client/location.
404The resource wasn't found, or doesn't belong to your agency.
429Too many requests. Retry after the number of seconds in the Retry-After header.
post/api/v1/connections/ad-accounts/select
Your API key
Request body*
{
  "data": {
    "selected": true
  }
}