---
title: "Schedule a relations export for a project"
method: POST
path: "/api/v4/projects/{id}/export_relations"
tags: ["project_import"]
---

# Schedule a relations export for a project

`POST /api/v4/projects/{id}/export_relations`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/export_relations`
- Auth: none declared

Schedules a relations export for a specified project.

## Path parameters

- `id` string, required

## Request body

- PostApiV4ProjectsIdExportRelations: Schedule a relations export for a project
  - `batched` boolean: Whether to export in batches

## Response `202`

Schedule a relations export for a project

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `503`: Service unavailable

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
