v1

latestOpenAPI 3.0.12026-07-175557102.5 KB

Create a new package version

Creates a new version of a package

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

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

Query parameters

configstring required

The path to the config file

Response

OK

idstring uuid required

The ID of the publishing task.

status'pending' | 'processing' | 'processed' | 'success' | 'failure' required

The status of the publishing task.

packageScopestring required

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

packageNamestring required

The name of a package.

packageVersionstring required

A semantic version.

createdAtstring date-time required

The date and time when the publishing task was created.

updatedAtstring date-time required

The date and time when the publishing task was last updated.

Example response

{
  "user": {
    "name": "Ryan Dahl",
    "avatarUrl": "https://avatars.githubusercontent.com/u/80?v=4",
    "githubId": 80
  },
  "packageScope": "denoland",
  "packageName": "fmt",
  "packageVersion": "1.2.3"
}