---
title: "Update a scope"
method: PUT
path: "/api/v1/scopes/{slug}"
tags: ["Apps & tools"]
---

# Update a scope

`PUT /api/v1/scopes/{slug}`

## Request

- Base URL: `https://unbrowse.ai`
- URL: `https://unbrowse.ai/api/v1/scopes/{slug}`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://unbrowse.ai/authorize`, token URL `https://unbrowse.ai/oauth/token`, scopes: `unbrowse`)
  - HTTP bearer

## Path parameters

- `slug` string, required

## Request body

- ToolScope: A named set of apps and tools. An MCP client at /mcp/{slug} (or /mcp?scope={slug}) lists and routes to only these; /mcp?apps=a.com,b.com is the ad-hoc form.
  - `slug` string, required
  - `name` string
  - `apps` string[]: Registrable domains (github.com); every tool on them is in scope.
  - `tools` string[]: Capability ids, on top of the apps.
  - `core` union: Which Unbrowse tools the connection keeps.
    - 'all' | 'run_only'
    - string[]
  - `discoverPublic` boolean: Let discover search the whole public registry, beyond the scope's apps.
  - `urls` object
    - `mcp` string
    - `mcpQuery` string

## Response `200`

The scope

- ToolScope: A named set of apps and tools. An MCP client at /mcp/{slug} (or /mcp?scope={slug}) lists and routes to only these; /mcp?apps=a.com,b.com is the ad-hoc form.
  - `slug` string, required
  - `name` string
  - `apps` string[]: Registrable domains (github.com); every tool on them is in scope.
  - `tools` string[]: Capability ids, on top of the apps.
  - `core` union: Which Unbrowse tools the connection keeps.
    - 'all' | 'run_only'
    - string[]
  - `discoverPublic` boolean: Let discover search the whole public registry, beyond the scope's apps.
  - `urls` object
    - `mcp` string
    - `mcpQuery` string

## Other responses

- `400`: An error
- `401`: Missing or invalid credentials. The WWW-Authenticate header names the protected-resource metadata.
- `402`: An error
- `404`: An error
- `429`: An error

---

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