---
title: "Update project auth settings"
method: POST
path: "/v0/api/projects/{projectGroupId}/settings/auth"
tags: ["Settings"]
---

# Update project auth settings

`POST /v0/api/projects/{projectGroupId}/settings/auth`

## Request

- Base URL: `https://api.anything.com`
- URL: `https://api.anything.com/v0/api/projects/{projectGroupId}/settings/auth`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/anything/apis/anything-api/docs/v0/api/projects/:projectGroupId/settings/auth/post.ts> (a function with typed inputs; its response is checked against the schema)

Updates the enabled state for a project auth provider and optionally stores provider secrets.

## Path parameters

- `projectGroupId` string, uuid, required

## Request body

- object
  - `provider` 'google' | 'email' | 'facebook' | 'twitter' | 'apple', required
  - `enabled` boolean, required
  - `secrets` object[]
    - `displayName` string, required
    - `envKey` string, required
    - `value` string, required
    - `environment` 'development' | 'preview' | 'production', required
  - `enableForAllModules` boolean

## Response `200`

Updated project auth settings

- object
  - `authEnabled` boolean, required
  - `providers` object[], required
    - `provider` 'google' | 'email' | 'facebook' | 'twitter' | 'apple', required
    - `enabled` boolean, required
    - `configured` boolean, required
    - `expectedSecretKeys` string[], required
    - `configuredSecretKeys` string[], required
    - `helpUrl` string, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found — the referenced resource does not exist (including malformed resource IDs)

---

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