GitLab API

GitlabTool

Actions1000

Overview

This node interacts with the GitLab API to create a new wiki page within a specified group. It is useful for automating documentation updates or managing group wikis programmatically. For example, a user can automate the creation of project documentation pages in GitLab wikis by specifying the group ID and wiki content.

Use Case Examples

  1. Automate creation of a new wiki page in a GitLab group to keep project documentation up to date.
  2. Create wikis for multiple groups in GitLab as part of a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to bypass authentication for the request.
Authentication Selects the authentication method to use for the API request.
baseUrl Base URL of the GitLab instance to send the API request to.
Method HTTP method to use for the API request.
Path Parameters Parameters to specify the group ID in the API path.

Output

JSON

  • id - ID of the created wiki page.
  • title - Title of the wiki page.
  • content - Content/body of the wiki page.
  • format - Format of the wiki content (e.g., markdown).
  • slug - URL-friendly identifier for the wiki page.
  • created_at - Timestamp when the wiki page was created.
  • updated_at - Timestamp when the wiki page was last updated.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID provided in the path parameters is valid and the authenticated user has permission to create wikis in that group.
  • Verify that the base URL is correct and accessible.
  • If authentication is skipped, the API request may fail due to lack of authorization.
  • Common error messages include 401 Unauthorized (check API key), 404 Not Found (invalid group ID), and 400 Bad Request (invalid request body).

Links

Discussion