Update package version

Changed on

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

patch/scopes/{scope}/packages/{package}/versions/{version}

Request

  • Base URL
    https://api.jsr.io
  • Auth
    HTTP bearer

Path parameters

scopestring required

The name of a scope. This must not be @ prefixed.

Example:denoland

The name of the scope

packagestring required

The name of a package.

Example:fmt

The name of the package

versionstring required

A semantic version.

Example:1.2.3

The version of the package

Request body

yankedboolean required

Whether the version is yanked or not.

Response

OK, no content

Changes

    • breaking

      removed the success response with the status

    • warning

      changed the pattern of the path request parameter package from /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/ to ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$

    • warning

      changed the pattern of the path request parameter scope from /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/ to ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$

    • info

      added the success response with the status

    • breaking

      the response property became nullable for the status