---
title: "Update scope"
method: PATCH
path: "/scopes/{scope}"
---

# Update scope

`PATCH /scopes/{scope}`

Updates the details of a scope

## Path parameters

- `scope` string, required — The name of a scope. This must not be @ prefixed.

## Request body

- union
  - object
    - `ghActionsVerifyActor` boolean, required — Whether to verify the actor of a GitHub Actions run when authenticating publishing with a GitHub Actions OIDC token.
  - object
    - `requirePublishingFromCI` boolean, required — Whether to require publishing from a CI environment. This disables publishing from a local environment.
  - object
    - `description` string, nullable, required — The description of the scope.

## Response `200`

OK

- Scope — Partial scope information.
  - `scope` string, required — The name of a scope. This must not be @ prefixed.
  - `description` string, required — The description of the scope.
  - `createdAt` string, date-time, required — The date and time when the scope was created.
  - `updatedAt` string, date-time, required — The date and time when the scope was last updated.

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — User is not scope admin
- `404` — Scope not found

---

[API](https://skmtc.net/deno/apis/jsr.md) · [All operations](https://skmtc.net/deno/apis/jsr/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deno/jsr/versions/3d37ac9b68f7/schema)
