GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows uploading attachments to a group's wiki in GitLab via the GitLab API. It is useful for automating the process of adding files to group wikis, such as images or documents, directly from an n8n workflow. For example, it can be used to programmatically attach files to documentation maintained in GitLab wikis for collaboration or version control purposes.

Use Case Examples

  1. Uploading an image file to a GitLab group wiki to enhance documentation.
  2. Automating the addition of PDF attachments to a group's wiki pages for sharing reports.

Properties

Name Meaning
Skip Authentication Option to skip API authentication for the request.
Authentication Type of authentication used for the API request, defaulting to 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 group ID for this operation.

Output

JSON

  • id - ID of the uploaded attachment
  • file_name - Name of the uploaded file
  • url - URL to access the uploaded attachment
  • markdown - Markdown string to embed the attachment in wiki pages

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID path parameter is correctly set and corresponds to an existing GitLab group.
  • Verify that the API key credential has sufficient permissions to upload attachments to the group's wiki.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include authentication failures (check API key), 404 not found (invalid group ID or path), and 400 bad request (invalid file or request body).

Links

Discussion