Create or deprecate an NPM package
PUT
/api/v4/projects/{id}/packages/npm/{package_name}
Creates or deprecates an NPM package for a specified project. Deprecate support was added in GitLab 16.0.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body required
Section titled “ Request Body required ” Media type multipart/form-data
object
file
required
The package file to be published (generated by Multipart middleware)
string format: binary
Responses
Section titled “ Responses ”OK
Bad Request
Unauthorized
Forbidden
Not Found