GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → postApiV4ProjectsIdUploads

AI-generated

Summary

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

Inputs

  • id (required) — The unique identifier of the GitLab project to which the file will be uploaded.

Output shape

an object representing the uploaded file details returned by GitLab, including attributes such as filename, URL, and markdown reference.

Returns the response body from the GitLab API containing information about the uploaded file. Authentication is required unless 'Skip Authentication' is enabled. The operation uses a POST request and requires the project ID as a path parameter.

Links

Discussion