Skip to Content

Resolve or reopen a comment thread

You're viewing API version 2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.
PATCH
/api/v1/documents/{id}/comments/{threadId}

Toggle a thread between OPEN and RESOLVED.

Authorization

headerAuthorizationBearer <token>

Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.

Path Parameters

id*string
threadId*string

Header Parameters

authorization*string

Bearer token for API authentication

Idempotency-Key?string

Makes retries safe. A retry with the same key and the same request replays the stored response for 24 hours (header Idempotent-Replayed: true); the same key with a different request returns 400.

Lengthlength <= 255

Request Body

Body

application/json
  1. body
status*string

Mark thread as resolved or reopen it

Value in"OPEN""RESOLVED"

Response Body

200

application/json
  1. response
id*string
documentId*string|null
status*string
Value in"OPEN""RESOLVED"
visibility*string
Value in"INTERNAL""SHARED"
excerpt*string|null
createdAt*unknown
updatedAt*unknown
resolvedAt*unknown
createdBy*|null
resolvedBy*|null
messages*array<>
Example Request
curl -X PATCH 'https://app.sajn.se/api/v1/documents/string/comments/string' \  -H 'authorization: string' \  -H 'Content-Type: application/json' \  -d '{  "status": "OPEN"}'
Example Response
{  "id": "string",  "documentId": "string",  "status": "OPEN",  "visibility": "INTERNAL",  "excerpt": "string",  "createdAt": null,  "updatedAt": null,  "resolvedAt": null,  "createdBy": {    "id": "string",    "name": "string",    "email": "string"  },  "resolvedBy": {    "id": "string",    "name": "string",    "email": "string"  },  "messages": [    {      "id": "string",      "threadId": "string",      "parentId": "string",      "authorType": "USER",      "body": "string",      "mentions": [        "string"      ],      "createdAt": null,      "editedAt": null,      "deletedAt": null,      "author": {        "id": "string",        "name": "string",        "email": "string"      }    }  ]}

Was this page helpful?