---
title: "POST /api/ee/remote-sync/export"
method: POST
path: "/api/ee/remote-sync/export"
tags: ["/api/ee/remote-sync"]
---

# POST /api/ee/remote-sync/export

`POST /api/ee/remote-sync/export`

Export the current state of the Remote Sync collection to a Source.

  This endpoint will:
  - Fetch the latest changes from the source
  - Create a branch or subdirectory (depending on source support)
    If no branch is supplied, use the configured export branch
  - Export the Remote Sync collection via serialization to the branch or subdirectory
  - Commit the changes if possible
  - Sync to the source if possible

  Requires superuser permissions.

## Response `2XX`

Successful response

- object
  - `message` string, required
  - `task_id` integer, required

## Other responses

- `4XX` — Client error response
- `5XX` — Server error response

---

[API](https://skmtc.net/metabase/apis/metabase-api.md) · [All operations](https://skmtc.net/metabase/apis/metabase-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/08b5a2bafb4f/schema)
