---
title: "Run Data Sync"
method: POST
path: "/api/workspaces/{slug}/data-sync"
tags: ["Workspaces"]
---

# Run Data Sync

`POST /api/workspaces/{slug}/data-sync`

## Request

- Base URL: `https://api.kolens.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolens.ai/api/workspaces/{slug}/data-sync`
- Auth: HTTP bearer

Share the caller's own existing data with this workspace.

Any member may do this FOR THEMSELVES — that is the whole point, and
it is why there is no admin role check: an admin pressing this on
someone else's behalf is exactly what the opt-in exists to prevent.
``require_workspace_membership`` without a role therefore reads as
intended, not as a missing gate.

Data created from here on is stamped at creation, so this is a
one-time catch-up for what already existed. Idempotent — running it
again moves nothing.

## Path parameters

- `slug` string, required

## Query parameters

- `confirm` boolean: Must be true — this publishes data

## Headers

- `x-kolens-user-id` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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