GitLab API

GitlabTool

Actions1095

Wikis → postApiV4ProjectsIdWikisAttachments

AI-generated

Summary

Upload a file attachment to a specific project's wiki in GitLab by making a POST request to the /api/v4/projects/{id}/wikis/attachments endpoint.

Inputs

  • id (required) — The ID of the GitLab project to which the wiki attachment will be uploaded.
  • postApiV4ProjectsIdWikisAttachments (required) — The body of the request containing the file attachment data as defined by GitLab's API schema for wiki attachments.
  • skipAuthentication — Optional flag to skip authentication; defaults to false.
  • baseUrl — Optional GitLab base URL; defaults to https://gitlab.com.

Output shape

a JSON object representing the uploaded file attachment as returned by GitLab's API.

The output matches the response schema of the GitLab API's wiki attachment upload endpoint. Authentication is required unless skipped, and the operation requires the project ID and the attachment content in the request body.

Links

Discussion