GitLab API

GitlabTool

Actions1000

Overview

This node operation updates a specific wiki page within a GitLab group by sending a PUT request to the GitLab API endpoint `/api/v4/groups/{id}/wikis/{slug}`. It is useful for automating the modification of group wiki content in GitLab, such as updating documentation or project notes programmatically.

Use Case Examples

  1. Updating a wiki page in a GitLab group to reflect new project guidelines.
  2. Automating the correction of typos or outdated information in group wikis.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method HTTP method to use for the request, default is GET but for this operation it should be PUT.
Path Parameters Parameters to specify the group ID and the wiki slug identifying the wiki page to update.

Output

JSON

  • id - The unique identifier of the updated wiki page.
  • title - The title of the updated wiki page.
  • content - The content of the updated wiki page.
  • format - The format of the wiki content (e.g., markdown).
  • slug - The slug (URL-friendly identifier) of 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 and wiki slug are correctly specified; incorrect values will cause the API to return errors such as 404 Not Found.
  • Authentication errors may occur if the API key is missing or invalid; verify the API key credentials are correctly configured.
  • The base URL must be correct for the GitLab instance being accessed; otherwise, the request will fail.

Links

Discussion