GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows users to create a new wiki page within a specified GitLab group by making a POST request to the GitLab API endpoint `/api/v4/groups/{id}/wikis`. It is useful for automating the management of group wikis in GitLab, such as adding documentation or collaborative content programmatically.

Use Case Examples

  1. Automatically create or update group wiki pages as part of a CI/CD pipeline.
  2. Integrate wiki page creation into a project management workflow to document project details automatically.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API access.
Authentication Select the authentication method, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is POST for this operation.
Path Parameters Parameters to be included in the request path, specifically the group ID for this operation.

Output

JSON

  • id - The unique identifier of the created wiki page.
  • title - The title of the created wiki page.
  • content - The content/body of the created wiki page.
  • format - The format of the wiki content, e.g., markdown.
  • slug - The 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 for authentication

Troubleshooting

  • Ensure the group ID path parameter is correctly set and corresponds to an existing GitLab group.
  • Verify that the authentication token has sufficient permissions to create wikis in the specified group.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 401 Unauthorized (authentication issues), 404 Not Found (invalid group ID), and 400 Bad Request (invalid request body). Resolving these involves verifying credentials, group existence, and request payload format.

Links

Discussion