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

# Update package

`PATCH /scopes/{scope}/packages/{package}`

Updates the details of a package

## Path parameters

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

## Request body

- union
  - object
    - `description` string, required — The description of the package.
  - object
    - `githubRepository` object, nullable, required
      - `owner` string, required — The GitHub user / organization of the repository.
      - `repo` string, required — The GitHub repository name.
  - object
    - `runtimeCompat` RuntimeCompat, required
      - `browser` boolean, nullable — Whether the package is compatible with web browsers.
      - `deno` boolean, nullable — Whether the package is compatible with Deno.
      - `node` boolean, nullable — Whether the package is compatible with Node.js.
      - `workerd` boolean, nullable — Whether the package is compatible with workerd.
      - `bun` boolean, nullable — Whether the package is compatible with Bun.

## Response `200`

OK

- Package
  - `scope` string, required — The name of a scope. This must not be @ prefixed.
  - `name` string, required — The name of a package.
  - `description` string, required — The description of the package.
  - `runtimeCompat` RuntimeCompat
    - `browser` boolean, nullable — Whether the package is compatible with web browsers.
    - `deno` boolean, nullable — Whether the package is compatible with Deno.
    - `node` boolean, nullable — Whether the package is compatible with Node.js.
    - `workerd` boolean, nullable — Whether the package is compatible with workerd.
    - `bun` boolean, nullable — Whether the package is compatible with Bun.
  - `createdAt` string, date-time, required — The date and time when the package was created.
  - `updatedAt` string, date-time, required — The date and time when the package was last updated.
  - `githubRepository` GitHubRepository
    - `owner` string — The GitHub user / organization of the repository.
    - `name` string — The GitHub repository name.
  - `score` number

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — User is not a scope member / User is not a scope admin
- `404` — Package not found

## Changes

- **2024-07-03** `bdf10fdaec39` — 1 info
  - added the optional property `score` to the response with the `200` status
- **2024-03-14** `cebb48e7803a` — 2 info
  - added `subschema #3` to the request body `oneOf` list
  - added the optional property `runtimeCompat` to the response with the `200` status
- **2024-03-14** `a15e5ad40921` — 1 info
  - added the optional property `githubRepository` to the response with the `200` status
- **2024-02-28** `f8d3b912d946` — 6 breaking, 7 warning, 3 info
  - removed `subschema #2, subschema #3, subschema #4, subschema #5, subschema #6` from the request body `oneOf` list
  - removed the required property `dependencyCount` from the response with the `200` status
  - removed the required property `dependentCount` from the response with the `200` status
  - removed the required property `isArchived` from the response with the `200` status
  - …12 more

[Change history](https://skmtc.dev/jsr-io/apis/jsr-api/changes/scopes/:scope/packages/:package/patch.md)

---

[API](https://skmtc.dev/jsr-io/apis/jsr-api.md) · [All operations](https://skmtc.dev/jsr-io/apis/jsr-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jsr-io/jsr-api/revisions/bdf10fdaec39/schema)
