---
raw: true
search:
  tags:
    - Spaces
    - PATCH
seo:
  description: >-
    Turns visitor sign-in for this Space's app on or off and chooses… Reference
    for the PATCH /v1/spaces/{spaceId}/users/settings endpoint in the Spacefast
    API.
sidebar:
  label: Update app sign-in settings
  badge: PATCH
title: Update app sign-in settings
type: openapi-operation
---
Turns visitor sign-in for this Space's app on or off and chooses its sign-in methods. Send the complete `settings` with `baseSettingsDigest` from the latest read; a stale digest refuses the write. For Google mode `direct`, `directGoogleSecret` saves the client secret write-only and `null` removes it; it is never returned. Only change sign-in at the user's request. App accounts sign in to the published Space only; they never grant team or Space access. Requires permission to manage the Space.

`PATCH /v1/spaces/{spaceId}/users/settings`

**Request body** (`application/json`, required)

- `settings` (object, required)
- `baseSettingsDigest` (string, required)
- `directGoogleSecret` (string | null) — Write-only direct Google client secret. Null removes it. Never returned.

Request body example:

```json
{
  "settings": {
    "enabled": true,
    "providers": {
      "google": {},
      "gravatar": {
        "enabled": true
      },
      "spacefast": {
        "enabled": true
      }
    }
  },
  "baseSettingsDigest": "string",
  "directGoogleSecret": "string"
}
```

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "settings": {
      "enabled": true,
      "providers": {
        "google": {},
        "gravatar": {
          "enabled": true
        },
        "spacefast": {
          "enabled": true
        }
      }
    },
    "availability": {
      "google": {
        "managed": true,
        "direct": true
      },
      "gravatar": true,
      "spacefast": true
    },
    "settingsDigest": "string",
    "googleCallbackUrl": "http://example.com"
  }
}
```
