---
raw: true
search:
  tags:
    - Teams
    - PATCH
seo:
  description: >-
    Updates the team's settings for Spaces and shared connectors… Reference for
    the PATCH /v1/teams/{teamId}/settings endpoint in the Spacefast Partner API.
sidebar:
  label: Update team settings
  badge: PATCH
title: Update team settings
type: openapi-operation
---
Updates the team's settings for Spaces and shared connectors atomically. Enterprise admins can set connectorsEnforcementPolicy with kind and connectors plus both policy revisions. Null removes a saved local policy, including after a downgrade or feature rollback. Parent policies cannot be overridden. Removal and empty blocklists require recent session identity confirmation.

`PATCH /v1/teams/{teamId}/settings`

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

- `defaultDataLocation` (string) — Default placement region for new spaces; "auto" lets placement decide.
- `connectorsServing` (object)
- `connectorsEnforcementPolicy` (object | null) — Enterprise connector allowlist or blocklist. Null removes the local policy. Requires both policy revisions; parent policies cannot be overridden. Session credentials require recent identity confirmation for removal or an empty blocklist.
- `connectorsEnforcementPolicyRevision` (integer)
- `connectorsEnforcementPolicyParentRevision` (integer | null)
- `githubPreviewCommentsEnabled` (boolean) — Controls GitHub preview comments for Spaces that use the team setting.
- `requireTwoFactor` (boolean) — Requires every team member to have two-factor authentication on. Only a team owner can change it, and it can only be turned on once every current member has two-factor on.
- `spaceCreationAdminOnly` (boolean) — When true, only the team's owners and admins can add new spaces to the team. This covers create, publish, claim, and the first push to a push remote (\`POST /v1/push-remotes\`). A member's transfer into the team also waits for an owner or admin to accept it. Members, and agents or API keys that act for a member, get 403 \`forbidden\` with \`details.teamSetting\` set to \`spaceCreationAdminOnly\`. Only owners and admins can change it. Spaces that already exist do not change.
- `customDomainsAdminOnly` (boolean) — When true, only team owners and admins can add custom domains to the team's Spaces. Members cannot add or verify a custom domain.
- `subteamCreationAdminOnly` (boolean) — When true, only the team's owners and admins can create subteams. Members, and agents or API keys that act for a member, get 403 \`forbidden\` with \`details.teamSetting\` set to \`subteamCreationAdminOnly\`. Only a team that can have subteams can change it.
- `wpCloudSettingsDefaults` (object) — WP Cloud defaults inherited by the team's Spaces.

Request body example:

```json
{
  "defaultDataLocation": "string",
  "connectorsServing": {
    "adminOnly": true,
    "allowlist": [
      "string"
    ]
  },
  "connectorsEnforcementPolicy": {
    "kind": "allowlist",
    "connectors": [
      "string"
    ]
  },
  "connectorsEnforcementPolicyRevision": 0,
  "connectorsEnforcementPolicyParentRevision": 0,
  "githubPreviewCommentsEnabled": true,
  "requireTwoFactor": true,
  "spaceCreationAdminOnly": true,
  "customDomainsAdminOnly": true,
  "subteamCreationAdminOnly": true,
  "wpCloudSettingsDefaults": {
    "default_php_conns": "string",
    "burst_php_conns": "string",
    "php_memory_limit": "string",
    "php_fs_permissions": "string",
    "static_file_404": "string",
    "canonicalize_aliases": "string",
    "space_quota": "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": {
    "connectorsServing": {
      "adminOnly": false,
      "allowlist": null
    },
    "connectorsEnforcementPolicy": null,
    "connectorsEnforcementPolicyDetails": {
      "localPolicy": {
        "kind": "allowlist",
        "connectors": [
          "string"
        ]
      },
      "effectivePolicy": {
        "kind": "allowlist",
        "connectors": [
          "string"
        ]
      },
      "controllingTeam": {
        "id": "string",
        "name": "string",
        "slug": "string"
      },
      "inherited": true,
      "revision": 0,
      "parentRevision": 0,
      "catalogAliases": [
        {
          "id": "string",
          "allowlistIds": [
            "string"
          ],
          "blocklistIds": [
            "string"
          ]
        }
      ],
      "connectors": [
        {
          "id": "string",
          "title": "string",
          "surface": "string",
          "logoUrl": "string",
          "grantable": true
        }
      ],
      "children": [
        {
          "id": "string",
          "name": "string",
          "slug": "string",
          "policy": {
            "kind": "allowlist",
            "connectors": [
              "string"
            ]
          }
        }
      ],
      "configured": [
        {
          "teamId": "string",
          "connectorId": "string",
          "connectorSlug": "string",
          "blocklistIds": [
            "string"
          ],
          "allowlistIds": [
            "string"
          ],
          "connections": 0,
          "bindings": 0,
          "spaceIds": [
            "string"
          ]
        }
      ]
    },
    "githubPreviewCommentsEnabled": true,
    "requireTwoFactor": true,
    "spaceCreationAdminOnly": true,
    "customDomainsAdminOnly": false,
    "subteamCreationAdminOnly": false,
    "teamId": "string",
    "wpCloudSettingsDefaults": {
      "default_php_conns": "string",
      "burst_php_conns": "string",
      "php_memory_limit": "string",
      "php_fs_permissions": "string",
      "static_file_404": "string",
      "canonicalize_aliases": "string",
      "space_quota": "string"
    },
    "defaultDataLocation": "string",
    "regionOptions": [
      {
        "id": "string",
        "label": "string"
      }
    ],
    "infraCapabilities": {
      "datacenters": [
        {
          "id": "string",
          "label": "string"
        }
      ],
      "phpVersion": "8.5"
    }
  }
}
```
