GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the uploads associated with a specific project in GitLab using the GitLab API v4. It is useful for scenarios where you need to list or manage files uploaded to a project, such as images, documents, or other assets. For example, a user might use this node to fetch all uploads for a project to display them in a custom dashboard or to automate backup processes.

Use Case Examples

  1. Fetch all uploads for a project with ID 123 to display in a project management tool.
  2. Automate retrieval of project uploads to sync with an external storage system.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public projects or testing.
Authentication Type of authentication used for the request, 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.
Query Parameters Optional query parameters to control pagination of results.
Path Parameters Path parameters required for the request, specifically the project ID.

Output

JSON

  • id - Unique identifier of the upload
  • url - URL to access the uploaded file
  • alt - Alternative text or description of the upload
  • created_at - Timestamp when the upload was created

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is valid and accessible with the provided authentication.
  • Check that the baseUrl is correctly set to the GitLab instance you are targeting.
  • If skipping authentication, verify that the project and its uploads are publicly accessible.
  • Common error messages include 401 Unauthorized (authentication issues) and 404 Not Found (invalid project ID or no uploads).

Links

Discussion