---
title: "Update a LinkedIn account (label, default)"
method: PATCH
path: "/me/linkedin/accounts"
tags: ["profile"]
---

# Update a LinkedIn account (label, default)

`PATCH /me/linkedin/accounts`

Update account metadata. Setting `isDefault: true` clears the default flag from all other accounts.

## Request body

- object
  - `accountId` string, required — ID of the LinkedIn account to update.
  - `label` string, nullable — User-facing label (e.g. 'Personal', 'Company SDR').
  - `isDefault` boolean — Set as the default account. Clears default from other accounts.
  - `isActive` boolean — Enable or disable BeReach access to this LinkedIn session. Disabling pauses all new data collection and actions on this account; the stored session is kept until the account is removed.
  - `proxyConfig` union — Proxy config. Null = disable proxy. Object = enable with mode.
    - object
      - `mode` 'residential', required
      - `country` string, required — ISO 3166-1 alpha-2 country code.
      - `city` string — City for geo-targeting.
      - `rotationHours` integer — Sticky IP rotation in hours (default 1).
    - object
      - `mode` 'isp', required
      - `country` string, required — ISO country code (reference only).
      - `staticIp` string, required — Dedicated ISP IPv4 address from Decodo.
      - `staticPort` integer, required — Port for the static IP.

## Response `200`

Updated account

- object
  - `success` true, required
  - `account` object, required
    - `id` string, required
    - `label` string, nullable, required
    - `isDefault` boolean, required
    - `linkedinProfileId` string, nullable, required
    - `linkedinName` string, nullable, required
    - `headline` string, nullable, required
    - `profilePic` string, nullable, required
    - `isValid` boolean, required
    - `isActive` boolean, required
    - `proxyConfig` object, nullable, required
      - `city` string, nullable, required
      - `mode` string, nullable, required
      - `country` string, nullable, required
      - `rotationHours` number, nullable, required
  - `creditsUsed` integer, required — Credits consumed by this call. 0 for free endpoints, cached results, duplicates, and for every query that does not touch LinkedIn.
  - `retryAfter` integer, required — Seconds to wait before another call of the same type. 0 means no wait is needed.
  - `_meta` object — Credit balance carried on every response so a caller never has to ask for it separately. Absent when the caller has no connected account.
    - `credits` object, required
      - `current` number, required — Credits spent this period.
      - `limit` number, nullable, required — Period allowance, or null when unlimited.
      - `remaining` number, nullable, required — Allowance left, or null when unlimited.
      - `percentage` number, required — Share of the allowance spent, 0 to 100.
      - `isUnlimited` boolean, required
      - `accountPlan` string, required — The credential's plan.

## Other responses

- `400` — The server cannot or will not process the request due to something that is perceived to be a client error.
- `401` — Although HTTP specifies "unauthorized", this response means "unauthenticated". Authenticate to continue. NOTE: 401 is also returned with code "linkedin_not_connected" when the caller IS authenticated but has no connected LinkedIn account — connect LinkedIn (not re-authenticate) to continue.
- `403` — The client does not have access rights to the content.
- `404` — The server cannot find the requested resource.
- `409` — The request conflicts with the current state of the server.
- `410` — The requested content has been permanently deleted from the server.
- `422` — The request was well-formed but was unable to be followed due to semantic errors.
- `429` — Rate limit exceeded. Read error.retryAfter for the wait time in seconds.
- `500` — The server encountered a situation it does not know how to handle.
- `502` — LinkedIn returned a server error or the proxy connection failed. Retry after a few seconds.
- `503` — Proxy capacity temporarily exceeded. Retry after a few seconds.

---

[API](https://skmtc.net/berea/apis/bereach-api.md) · [All operations](https://skmtc.net/berea/apis/bereach-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/berea/bereach-api/revisions/a1e86af2406d/schema)
