---
title: "Pick the Meta ad account Patricia uses by default"
method: PATCH
path: "/v1/integrations/accounts/{account_id}/meta-ads/ad-account"
tags: ["integrations"]
---

# Pick the Meta ad account Patricia uses by default

`PATCH /v1/integrations/accounts/{account_id}/meta-ads/ad-account`

## 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}/meta-ads/ad-account`
- Auth: HTTP bearer

Makes one of a Meta Ads connection's discovered ad accounts its default, which is what an unqualified question resolves to when several are switched on. Naming an ad account this connection never discovered, one Meta reports as closed, or one that is switched off, is refused rather than stored. Tenant- AND owner-scoped: a foreign, unknown, non-Meta or not-visible account id 404s.

## Path parameters

- `account_id` string, uuid, required

## Headers

- `X-Tenant-Id` string, nullable

## Request body

- MetaAdAccountBody: Make one of a Meta connection's discovered ad accounts its default.
  - `ad_account_id` string, required

## Response `200`

Successful Response

- MetaAdAccountsResponse: Every ad account a Meta connection discovered, which are switched on, and the default.
  - `ad_accounts` MetaAdAccountSummary[]
    - `id` string, required
    - `account_id` string, required
    - `name` string, required
    - `account_status` integer, required
    - `status_label` string, required
    - `currency` string, required
    - `business_name` string, nullable
    - `user_tasks` string[]
    - `can_write` boolean
    - `is_active` 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)
