packages_npm

Create or deprecate an NPM package

Creates or deprecates an NPM package for a specified project. Deprecate support was added in GitLab 16.0.

put/api/v4/projects/{id}/packages/npm/{package_name}

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID or URL-encoded path of the project

package_namestring required

Package name

Request body

filestring binary required

The package file to be published (generated by Multipart middleware)

Response

Create or deprecate an NPM package

Changes

No recorded changes to this operation across all 5 revisions of this API.