v1

latestOpenAPI 3.0.12026-06-115557102.5 KB

Update package

Updates the details of a package

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

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

Request body

OR
OR
OR
OR
OR

Example request

{
  "githubRepository": {
    "owner": "denoland",
    "name": "deno"
  }
}

Response

OK

scopestring required

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

namestring required

The name of a package.

descriptionstring required

The description of the package.

createdAtstring date-time required

The date and time when the package was created.

updatedAtstring date-time required

The date and time when the package was last updated.

scoreinteger nullable

The package score percentage (0-100).

versionCountinteger required

The number of versions of the package.

dependencyCountinteger required

The number of dependencies of the package.

dependentCountinteger required

The number of packages that depend on this package.

latestVersionstring nullable

The latest version of the package.

whenFeaturedstring date-time nullable

The date and time when the package was featured.

isArchivedboolean required

Whether the package is archived.

readmeSource'readme' | 'jsdoc' required

The source of the package readme.

Example response

{
  "scope": "denoland",
  "name": "fmt",
  "description": "A module for formatting strings.",
  "githubRepository": {
    "owner": "denoland",
    "name": "deno"
  }
}