GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdUploads

AI-generated

Summary

Upload a file to a GitLab project by sending a POST request to the /api/v4/projects/{id}/uploads endpoint.

Inputs

  • id (required) — The ID of the GitLab project to which the file will be uploaded.
  • postApiV4ProjectsIdUploads (required) — The request body payload conforming to the postApiV4ProjectsIdUploads schema, containing the file to upload and related data.
  • Skip Authentication — Optionally skip authentication for the request (default is false).
  • baseUrl — The base URL of the GitLab instance, defaults to https://gitlab.com if not specified.

Output shape

a JSON object representing the response from the GitLab API file upload endpoint

The output includes details about the uploaded file as returned from the GitLab API. Authentication is required unless explicitly skipped.

Links

Discussion