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

# Update package version

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

Updates the details of a package version (e.g., yank/unyank)

## Path parameters

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

## Request body

- UpdatePackageVersionRequest
  - `yanked` boolean, required — Whether the version is yanked or not.

## Response `204`

OK, no content

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — User is not a scope admin
- `404` — Package version 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/revisions/3d37ac9b68f7/schema)
