---
search:
  tags:
    - offline-sync
    - POST
seo:
  description: >-
    Commit the post-transfer baseline for a matter. Reference for the POST
    /api/v1/sync/matters/{id}/commit endpoint in the Basenet Public API.
sidebar:
  label: Commit the post-transfer baseline for a matter
  badge: POST
title: Commit the post-transfer baseline for a matter
type: openapi-operation
---
Endpoint: `POST /api/v1/sync/matters/{id}/commit`

Authentication: `bearerAuth` (Scoped API token (bnx\_…). Required scopes are noted per operation.)

Parameters:
- `id` (in path, string, required)

Request body (`application/json`):
- `supportedContractVersions` (array of one of `"v1"`, optional)
- `items` (array of object, required)
- `items[].relativePath` (string, required)
- `items[].documentId` (string or null, required)
- `items[].dmsChecksum` (string or null, required)
- `items[].deviceChecksum` (string or null, required)
- `items[].syncState` (one of `"synced"`, `"conflict"`, `"dms_deleted"`, `"device_deleted"`, `"pending"`, required)
- `removePaths` (array of string, optional)

Responses:
- `200`: Committed baseline count and selected contract version
- `400`: Invalid request
- `401`: Unauthenticated
- `403`: Forbidden (missing scope or permission)
- `429`: Rate limited

Response 200 body (`application/json`):
- `contractVersion` (one of `"v1"`, required)
- `matterId` (string, required)
- `committed` (integer, required)
