---
title: "POST /api/v1/two-way-sync/{spaceId}/conflicts/resolve"
method: POST
path: "/api/v1/two-way-sync/{spaceId}/conflicts/resolve"
---

# POST /api/v1/two-way-sync/{spaceId}/conflicts/resolve

`POST /api/v1/two-way-sync/{spaceId}/conflicts/resolve`

## Request

- Base URL: `https://falconer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://falconer.com/api/v1/two-way-sync/{spaceId}/conflicts/resolve`
- Auth: none declared

## Path parameters

- `spaceId` integer, required: Space id, from GET /spaces.

## Headers

- `x-organization-id` string: Required when using OAuth bearer tokens.

## Request body

- ResolveFileConflictsRequest
  - `items` object[], required
    - `path` string: Path relative to the sync root. Pass this or fileNodeId.
    - `fileNodeId` string
    - `conflictId` string: Conflict id from list_two_way_sync_conflicts, instead of a path.
    - `updatedAt` string, date-time, required
    - `resolution` union, required
      - object
        - `kind` 'keep_local', required: Keep the Falconer page after a repository delete.
      - object
        - `kind` 'archive_local', required: Accept the repository delete and archive the page.
      - object
        - `kind` 'apply_full', required: Take the repository version.
      - object
        - `kind` 'reject', required: Keep the Falconer version and discard the repository edit.
  - `push` boolean

## Response `200`

One result per item, in request order.

- ResolveFileConflictsResponse
  - `data` object[], required
    - `conflictId` string, nullable, required
    - `path` string, nullable, required
    - `ok` boolean, required
    - `push` object, nullable, required
      - `ok` boolean, required
      - `commitSha` string, nullable, required
      - `reason` string, nullable, required
    - `error` object, nullable, required
      - `message` string, required
      - `code` string, required
      - `status` integer, required

## Other responses

- `400`: Bad request, or a folder that is not the sync root
- `403`: Two-way sync is not enabled or permission is missing
- `404`: Folder not synced, or file not found
- `412`: Connect a personal GitHub account with the repo scope

---

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