GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdUploadsSecretFilename

AI-generated

Summary

Retrieve a specific project upload file from GitLab using the project ID, the 32-character secret of the upload, and the filename.

Inputs

  • id (required) — The integer ID of the project to which the upload belongs.
  • secret (required) — The 32-character secret specific to the project upload.
  • filename (required) — The filename of the uploaded file to retrieve.
  • skipAuthentication — Optional flag to skip authentication (default is false).
  • baseUrl — Optional base URL for the GitLab instance, defaulting to https://gitlab.com.
  • method — HTTP method to use; defaults to GET.

Output shape

The response from the GitLab API for the project upload file, typically the raw file content or metadata depending on the API endpoint.

The operation uses a GET request by default to the endpoint /api/v4/projects/{id}/uploads/{secret}/{filename}. Authentication is required unless 'Skip Authentication' is set to true. The returned data shape depends on the GitLab API response for that upload file endpoint.

Examples

Example 1: Use the project ID, upload secret, and filename to fetch the file content of a specific upload in a GitLab project, optionally specifying a custom GitLab base URL and skipping authentication if needed.

Set 'id' to the target project's integer ID, 'secret' to the 32-character upload secret, and 'filename' to the exact filename stored in the upload. Defaults to a GET method and baseUrl of https://gitlab.com.

Links

Discussion