---
title: "Set Google Lsa Account Login Customer Id"
method: PATCH
path: "/admin/lsa/account-login-customer-id"
tags: ["admin", "lsa-admin"]
---

# Set Google Lsa Account Login Customer Id

`PATCH /admin/lsa/account-login-customer-id`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/admin/lsa/account-login-customer-id`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Set an LSA account's ``login_customer_id`` (MCC) so it authenticates via that MCC's
shared manager credential instead of the org's per-org credential.

The remap that heals an account whose per-org OAuth credential died (e.g. an account with
a NULL ``login_customer_id`` after a per-org OAuth-400): once pointed at an MCC that has a
mapped manager credential, the next poll resumes ingestion. Guarded server-side — rejected
with 400 unless Google reports the customer as a managed child of the MCC.

## Headers

- `organization-id` string, nullable
- `timezone` string
- `x-user-id` string, nullable
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Request body

- SetGoogleLsaLoginCustomerIdBody
  - `organization_id` string, required: organization.id (UUID) that owns the LSA account.
  - `google_customer_id` string, required: The LSA account's Google customer id (dashes optional).
  - `login_customer_id` string, required: MCC id to set as login_customer_id (dashes optional). Must manage the customer.

## Response `200`

Successful Response

- ApiDomainsLeadsGoogleAdsLsaLsaAccountGoogleLSAAccountResponse
  - `id` string, uuid, required
  - `organization_id` string, uuid, required
  - `google_customer_id` string, required
  - `is_active` boolean, required
  - `auto_reply_message` string, nullable
  - `login_customer_id` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/upsmith/apis/upsmith-api.md) - [All operations](https://skmtc.dev/upsmith/apis/upsmith-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upsmith/apis/upsmith-api/revisions/86e2c2bd93af?raw)
