{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "api-post-api-connections-id-refresh",
  "title": "POST /api/connections/:id/refresh",
  "section": "HTTP endpoint reference",
  "description": "POST /api/connections/:id/refresh",
  "kind": "api",
  "url": "/wiki/api-post-api-connections-id-refresh/",
  "markdown": "/wiki/api-post-api-connections-id-refresh/index.md",
  "json": "/wiki/api-post-api-connections-id-refresh/index.json",
  "headings": [
    {
      "id": "contract",
      "title": "Contract",
      "depth": 2
    },
    {
      "id": "request",
      "title": "Request",
      "depth": 2
    },
    {
      "id": "response",
      "title": "Response",
      "depth": 2
    },
    {
      "id": "guard",
      "title": "Guard",
      "depth": 2
    },
    {
      "id": "use-this-endpoint",
      "title": "Use this endpoint",
      "depth": 2
    }
  ],
  "sources": [
    "server/connections.ts"
  ],
  "contract": {
    "method": "POST",
    "path": "/api/connections/:id/refresh",
    "description": "POST /api/connections/:id/refresh",
    "request": {
      "path": [
        "id"
      ],
      "query": [],
      "body": [
        "expectedRevision"
      ]
    },
    "response": {
      "statuses": [],
      "fields": []
    },
    "inlineConcurrencyFields": [
      "expectedRevision"
    ],
    "source": {
      "file": "server/connections.ts",
      "line": 447
    },
    "contract": "Explicit revision-guarded OAuth refresh; rotation is persisted and uncertain outcomes are blocked from automatic repetition.",
    "guard": "Trusted-host Host/Origin boundary; per-route revision, version and validation checks apply."
  }
}
