---
title: "Pause scheduled polling"
method: POST
path: "/api/federation/subscriptions/{id}/pause"
tags: ["Federation"]
---

# Pause scheduled polling

`POST /api/federation/subscriptions/{id}/pause`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/federation/subscriptions/{id}/pause`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

## Path parameters

- `id` integer, required

## Response `200`

Updated subscription.

- FederationSubscription: Never includes the encrypted API key. `webhookSecret` is `null` except on the responses that explicitly reveal it once (create, rotate-webhook-secret).
  - `id` integer
  - `tenantId` integer
  - `name` string
  - `sourceInstanceUrl` string
  - `remoteWorkspace` string
  - `shadowWorkspaceId` integer
  - `signingKeyId` string, nullable
  - `signingPubkey` string, nullable
  - `cursor` string, date-time, nullable
  - `pollIntervalMinutes` integer
  - `status` 'active' | 'paused' | 'revoked'
  - `webhookSecret` string, nullable
  - `lastSyncedAt` string, date-time, nullable
  - `lastSyncStatus` string, nullable
  - `lastSyncError` string, nullable
  - `lastSyncStats` object, nullable
  - `createdByUserId` integer, nullable
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `401`: Missing or invalid credentials.
- `403`: The caller has no resolvable tenant context.
- `404`: Resource not found (or not visible to the caller).

---

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