GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation updates a specific wiki page in a GitLab project using the GitLab API. It is useful for automating the management of project documentation stored as wikis in GitLab. For example, it can be used to programmatically update wiki content based on external data or workflows.

Use Case Examples

  1. Updating a wiki page in a GitLab project to reflect new project information.
  2. Automating documentation updates in GitLab wikis as part of a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, here it is PUT for updating the wiki.
Path Parameters Parameters used in the request path to identify the project and the specific 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 identifier of the updated wiki page.
  • created_at - Timestamp when the wiki page was created.
  • updated_at - Timestamp when the wiki page was last updated.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and wiki slug are correct and exist in the GitLab instance.
  • Verify that the authentication credentials are valid and have permission to update wikis in the project.
  • Check that the request body contains all required fields as per the GitLab API specification for updating wikis.
  • Common error messages include 401 Unauthorized (invalid credentials), 404 Not Found (invalid project ID or wiki slug), and 400 Bad Request (invalid request body). Resolving these involves correcting credentials, verifying resource identifiers, and validating request payloads.

Links

Discussion