GitLab API icon

GitLab API

Gitlab

Actions1062

Generic_packages → putApiV4ProjectsIdPackagesGenericPackageName*packageVersion(*path)FileName

AI-generated

Summary

Uploads a file to a GitLab Generic Package Registry using a PUT request to /api/v4/projects/{id}/packages/generic/{package_name}/{package_version}/{file_path}/{file_name}.

Inputs

  • id (required) — The ID or URL‑encoded path of the GitLab project.
  • package_name (required) — Name of the generic package.
  • file_name (required) — Name of the file to upload.
  • package_version — Version of the generic package (appears in the path).
  • file_path — Optional sub‑path within the package where the file will be stored.
  • body (required) — File content to upload, provided as binary data.
  • skipAuthentication — If true, the request will not use GitLab API credentials.
  • baseUrl — Base URL of the GitLab instance (defaults to https://gitlab.com).
  • method — HTTP method to use (defaults to PUT for this operation).

Output shape

Returns the GitLab API response for the file upload operation.

On success the node returns the JSON response from GitLab; on error it throws an n8n error.

Examples

Example 1: Upload a file to a generic package

Set Project ID, Package name, File name, optionally Package version and File path, attach the file in the Body field, and keep Authentication credentials.

Links

Discussion