---
title: "Update Firebase external user source"
method: PUT
path: "/resources/user-sources/v1/external/firebase/{id}"
tags: ["User sources (pools)"]
---

# Update Firebase external user source

`PUT /resources/user-sources/v1/external/firebase/{id}`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/user-sources/v1/external/firebase/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/user-sources/v1/external/firebase/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

This route updates an external user source. A vendor token is required for this route.

## Path parameters

- `id` string, required

## Request body

- UpdateExternalFirebaseUserSourceRequestDTO
  - `name` string: The user source name
  - `configuration` ExternalFirebaseUserSourceConfig
    - `syncOnLogin` boolean, required: Whether to sync user profile attributes on each login
    - `isMigrated` boolean, required: Whether to migrate the users
    - `apiKey` string, required: The firebase Web API Key
    - `serviceAccount` FirebaseServiceAccountConfig, required
      - `type` string, required
      - `project_id` string, required
      - `private_key_id` string, required
      - `private_key` string, required
      - `client_email` string, required
      - `client_id` string, required
      - `auth_uri` string, required
      - `token_uri` string, required
      - `auth_provider_x509_cert_url` string, required
      - `client_x509_cert_url` string, required
      - `universe_domain` string, required
    - `tenantConfig` union, required
      - UserSourceStaticTenantConfig
        - `tenantId` string, required: The tenant id which all of the users would be added to
        - `tenantResolverType` 'static', required
      - UserSourceNewTenantConfig
        - `tenantResolverType` 'new', required
  - `index` number: The user source index
  - `description` string: The user source description

## Response `200`

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
