---
raw: true
search:
  tags:
    - Access
    - PUT
seo:
  description: >-
    Changes only the fields sent. newSpaceGrantPreset applies to… Reference for
    the PUT /v1/teams/{teamId}/access/defaults endpoint in the Spacefast Partner
    API.
sidebar:
  label: Set the team's space access settings
  badge: PUT
title: Set the team's space access settings
type: openapi-operation
---
Changes only the fields sent. `newSpaceGrantPreset` applies to future spaces only. `privateSpacesOnly` and `noindex` apply to every space the team owns: turning `privateSpacesOnly` on revokes every public Grant on them, turns `noindex` on, and changes a `public` new-space default to `private`. While it is on, a `public` default or `noindex: false` returns 409 `team_private_spaces_only`. Turning it off makes spaces whose sf.jsonc declares `access.public` public again; `publicSpaceCount` counts them. `privateSpacesOnly` and `noindex` change only from a dashboard browser session: API keys, CLI logins and OAuth or agent tokens get 403 `interactive_session_required`. The spaces' runtime update continues in the background. `restrictSpaceTransfer` is parent-controlled and available on Enterprise/Internal. Both enabling and disabling use standard sensitive-action confirmation for session callers; delegated bearer authority and scopes are unchanged. Subteams inherit the parent value and cannot override it. A mixed write is atomic. Incoming transfers and existing transfer permissions are unchanged.

`PUT /v1/teams/{teamId}/access/defaults`

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

- `restrictSpaceTransfer` (boolean) — Restrict outgoing transfers to the parent team and its subteams. Only parent owners and admins on Enterprise or Internal may change it. Session callers use standard sensitive-action confirmation; delegated API/agent authority and scopes remain unchanged.
- `newSpaceGrantPreset` (string) — The general access new spaces start with: \`private\` (the whole team) or \`public\` (anyone on the web). \`team\` is accepted as a legacy spelling of \`private\`.
- `privateSpacesOnly` (boolean) — When true, no space in this team can be public: public Grants, public new-space defaults, and \`access: public\` on create or publish are refused with \`team\_private\_spaces\_only\`, and public access declared in sf.jsonc is ignored. Turning it on revokes every public Grant on the team's spaces and turns \`noindex\` on. Dashboard only: these rules guard against agents, so API keys, CLI logins and OAuth or agent tokens get 403 \`interactive\_session\_required\`; read them instead.
- `noindex` (boolean) — When true, every space in this team serves platform noindex directives on its live hostnames, whatever its own \`noindex\` says, and a space cannot turn it off. Always true while \`privateSpacesOnly\` is true. Dashboard only: these rules guard against agents, so API keys, CLI logins and OAuth or agent tokens get 403 \`interactive\_session\_required\`; read them instead.

Request body example:

```json
{
  "restrictSpaceTransfer": true,
  "newSpaceGrantPreset": "private",
  "privateSpacesOnly": true,
  "noindex": true
}
```

**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": {
    "privateSpacesOnly": true,
    "noindex": true,
    "restrictSpaceTransfer": true,
    "spaceTransferPolicy": {
      "inherited": true,
      "eligible": true,
      "managedBy": {
        "id": "string",
        "name": "string",
        "slug": "string"
      }
    },
    "newSpaceGrantPreset": "private",
    "publicSpaceCount": 0
  }
}
```
