---
title: "Schedule a relations export for a group"
method: POST
path: "/api/v4/groups/{id}/export_relations"
tags: ["group_import_and_export"]
---

# Schedule a relations export for a group

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

## Request

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

Schedules a relations export for a specified group.

## Path parameters

- `id` string, required

## Request body

- PostApiV4GroupsIdExportRelations: Schedule a relations export for a group
  - `batched` boolean: Whether to export in batches

## Response `202`

Schedule a relations export for a group

## Other responses

- `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)
