GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation authorizes a PUT request to upload or update a specific Conan package file in a GitLab repository using the GitLab API. It is useful for managing Conan package files such as conanfile.py, conanmanifest.txt, and others within a GitLab project, enabling automation of package file management in CI/CD pipelines or package distribution workflows.

Use Case Examples

  1. Automate uploading a new version of a Conan package file to GitLab.
  2. Authorize and update package files during a CI/CD pipeline for Conan packages.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
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 used for this operation.
Parameter Schema Defines the required path parameters for the API call including package name, version, username, channel, recipe revision, and file name.
Path Parameters Collection of path parameters specifying the package details and file name to authorize the PUT request.

Output

JSON

  • statusCode - HTTP status code of the API response
  • body - Response body containing authorization details or error information

Dependencies

  • Requires GitLab API key credential for authentication.

Troubleshooting

  • Ensure all required path parameters are provided and correctly formatted to avoid 400 or 404 errors.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials.
  • Check that the file_name parameter matches one of the allowed enum values to prevent request rejection.

Links

Discussion