GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows uploading or updating a specific file within a generic package version in a GitLab project. It is useful for managing package files directly via the GitLab API, such as publishing new package versions or updating existing package files in a project repository.

Use Case Examples

  1. Uploading a new package file to a specific version of a generic package in a GitLab project.
  2. Updating an existing package file in a generic package version to fix or improve the package content.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API access.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but PUT is typical for this operation.
Path Parameters Parameters to specify the project ID, package name, and file name for the package file to upload or update.

Output

JSON

  • response - The response from the GitLab API after uploading or updating the package file, typically including status and metadata about the file.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID, package name, and file name are correctly specified and URL-encoded if necessary.
  • Verify that the authentication credentials are valid and have sufficient permissions to upload or update package files.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common errors include 401 Unauthorized (authentication issues), 404 Not Found (incorrect project or package details), and 400 Bad Request (invalid request body or parameters).

Links

  • GitLab Generic Packages API - Official GitLab documentation for managing generic packages via API, including uploading package files.

Discussion