---
title: "Choose which LinkedIn ad accounts Patricia may use"
method: PATCH
path: "/v1/integrations/accounts/{account_id}/linkedin/enabled-ad-accounts"
tags: ["integrations"]
---

# Choose which LinkedIn ad accounts Patricia may use

`PATCH /v1/integrations/accounts/{account_id}/linkedin/enabled-ad-accounts`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/integrations/accounts/{account_id}/linkedin/enabled-ad-accounts`
- Auth: HTTP bearer

Sets the whole enabled set. An id this connection never discovered, or one LinkedIn reports as not active, is refused. An empty list is refused. Reads the connection's stored discovery rather than calling LinkedIn, so opening the picker costs nothing against LinkedIn's daily limits. Tenant- AND owner-scoped: a foreign, unknown, non-LinkedIn or not-visible account id 404s.

## Path parameters

- `account_id` string, uuid, required

## Headers

- `X-Tenant-Id` string, nullable

## Request body

- LinkedInEnabledAdAccountsBody: Choose which of a LinkedIn connection's discovered ad accounts Patricia may use. An empty list is refused.
  - `enabled_ad_account_ids` string[]

## Response `200`

Successful Response

- LinkedInAdAccountsResponse: Every ad account a LinkedIn connection discovered, which are switched on, and the default.
  - `ad_accounts` LinkedInAdAccountSummary[]
    - `id` string, required
    - `name` string, required
    - `currency` string, required
    - `status` string, required
    - `serving_statuses` string[]
    - `serving_holds` string[]
    - `reference` string, nullable
    - `roles` string[]
    - `test` boolean
    - `is_active` boolean
    - `can_write` boolean
    - `edits_approved` boolean
    - `enabled` boolean
  - `selected_ad_account_id` string, nullable
  - `enabled_ad_account_ids` string[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/patricia/apis/patricia-api.md) · [All operations](https://skmtc.dev/patricia/apis/patricia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/patricia/apis/patricia-api/revisions/0dfb44495ea1?raw)
