GitLab API

GitlabTool

Actions1095

Project_export → getApiV4ProjectsIdExportRelationsDownload

AI-generated

Summary

Download a specific export relation file for a GitLab project by project ID or URL-encoded path, specifying the relation name and optional batch parameters.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project.
  • relation (required) — The name of the project relation to download.
  • batched — Indicates whether to download the export relation in batches (true or false).
  • batch_number — The batch number to download, when downloading in batches.

Output shape

a binary file representing the downloaded export relation content

The response returns the file corresponding to the specified export relation. Optional batching parameters can control partial downloads when supported by the API.

Examples

Example 1: Download the complete export relation file for a given project

Set 'id' to the project's ID or URL-encoded path, 'relation' to the export relation name, leave batching fields empty.

Links

Discussion