GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation authorizes uploads for a specific project in GitLab by making a POST request to the GitLab API endpoint `/api/v4/projects/{id}/uploads/authorize`. It is useful for scenarios where you need to programmatically authorize file uploads to a GitLab project, such as automating CI/CD pipelines or managing project assets.

Use Case Examples

  1. Automate authorization of file uploads to a GitLab project before uploading files.
  2. Integrate GitLab project upload authorization into a workflow to ensure secure and validated uploads.

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 POST is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the project ID for this operation.

Output

JSON

  • id - The ID of the project for which the upload authorization is requested.
  • authorized - Indicates whether the upload authorization was successful.
  • message - Any message returned by the API regarding the authorization status.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is valid and accessible with the authenticated user.
  • Check that the GitLab API key credential is correctly configured and has sufficient permissions to authorize uploads.
  • If skipping authentication, verify that the GitLab instance allows unauthenticated requests for this endpoint, which is uncommon.

Links

Discussion