GitLab API icon

GitLab API

Gitlab

Actions1062

Wikis → postApiV4ProjectsIdWikisAttachments

AI-generated

Summary

Upload a file attachment to a project's wiki in GitLab by specifying the project ID and providing the file data in the request body.

Inputs

  • id (required) — The ID of the project to which the wiki attachment will be uploaded.
  • skipAuthentication — Optionally skip authentication (defaults to false, meaning authentication is used).
  • baseUrl — Optional base URL for the GitLab instance (defaults to https://gitlab.com).
  • method — HTTP method for the request; for this operation, POST is used.
  • postApiV4ProjectsIdWikisAttachments (required) — The body of the request containing the attachment file data to upload to the wiki.

Output shape

a single record

Returns details of the uploaded wiki attachment. Requires authentication unless 'skipAuthentication' is true.

Links

Discussion