PermuteDocs
Go to Permute

Write syncs · writeSyncsPause

Pause a write sync

Stops future writes and scheduled runs. Retains the relationship and record links. Requests already sent may finish. To resume, capture and approve a new preview.

POST/v1/write-syncs/{writeSyncId}/pause
betaapiKeyworkspace

When to use

Stop scheduled runs and further writes.

For agents

Already-sent requests may finish. Pausing preserves links and the relationship. To resume, capture and approve a new preview.

Example

typescript
import { PermuteClient } from '@permute/sdk';

const orgClient = new PermuteClient({
  apiKey: process.env.PERMUTE_API_KEY!,
});

const client = orgClient.withWorkspace(process.env.PERMUTE_WORKSPACE_ID!);

const result = await client.writeSyncs.pause('wsyn_contacts123');

Response

json
{
  "data": {
    "id": "wsyn_contacts123",
    "name": "Contacts → Quo contacts",
    "definition": {
      "source": {
        "resourceId": "oper_contacts123",
        "object": "contacts",
        "scope": ""
      },
      "destination": {
        "resourceId": "conn_quo123",
        "object": "contacts",
        "scope": ""
      },
      "input": {
        "type": "operation",
        "operationId": "oper_contacts123",
        "revisionId": "rvsn_contacts123",
        "table": "contacts"
      },
      "keyColumn": "email",
      "fields": {
        "emails": "email",
        "firstName": "first_name",
        "lastName": "last_name"
      }
    },
    "version": 1,
    "isEnabled": false,
    "createdAt": "2026-09-30T12:00:00.000Z",
    "updatedAt": "2026-09-30T12:00:00.000Z"
  }
}