---
title: "Push Workspace Export"
method: POST
path: "/workspaces/{id}/sync"
tags: ["Workspaces"]
---

# Push Workspace Export

`POST /workspaces/{id}/sync`

## Request

- Base URL: `https://synchronex.ai/api/v1`
- URL: `https://synchronex.ai/api/v1/workspaces/{id}/sync`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://synchronex.ai/oauth/authorize`, token URL `https://synchronex.ai/api/oauth/token`, scopes: `read`)

## Request body

- object
  - `existing_content` string

## Response `200`

Export hash unchanged.

- object
  - `status` 'no_change', required
  - `log_id` string, nullable, required
  - `file` object, required
    - `path` string, required
    - `content` string, required
    - `managed_hash` string, required

## Other responses

- `201`: Export applied for client write.
- `401`: Unauthorized. Missing, malformed, expired, or revoked bearer token.
- `403`: Forbidden. The token scope or account tier is insufficient.
- `404`: Not found or not owned by the authenticated user.
- `409`: Conflict. The requested mutation conflicts with current state.

---

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