---
title: "Resolve or reopen a comment"
method: PATCH
path: "/v1/spaces/{spaceId}/comments/{threadId}"
tags: ["Spaces"]
---

# Resolve or reopen a comment

`PATCH /v1/spaces/{spaceId}/comments/{threadId}`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/spaces/{spaceId}/comments/{threadId}`
- Auth: HTTP bearer

`status: archived` resolves a thread and `open` reopens it. Team admins also pass spam verdicts here: `spam` holds the thread, `open` releases a held one, and `spamCommentId` narrows a verdict to one held reply.

## Path parameters

- `spaceId` string, required
- `threadId` string, required

## Request body

- object
  - `status` 'open' | 'archived' | 'spam'
  - `spamCommentId` string

## Response `200`

Response for status 200

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object, required
    - `id` string, required
    - `castThreadId` string, required
    - `spaceId` string, required
    - `versionId` string, nullable, required
    - `channel` string, nullable, required
    - `pagePath` string, required
    - `url` string, nullable, required
    - `status` 'open' | 'archived', required: `open`, or `archived` for a resolved thread.
    - `moderationState` 'clear' | 'spam', required
    - `heldCommentIds` string[], required
    - `unread` boolean, required: Whether an open thread has a message by someone else since you last read it. Resolved threads are never unread.
    - `unreadCount` integer, required: Messages by others since you last read the thread. Zero exactly when `unread` is false.
    - `body` string, nullable, required
    - `author` object, nullable, required
      - `kind` string, nullable, required
      - `id` string, nullable, required
      - `profileId` string, nullable, required
      - `name` string, nullable, required
      - `username` string, nullable, required
      - `avatarUrl` string, uri, nullable, required
      - `color` string, nullable, required
    - `target` object, required
    - `mentions` string[], required: Spacefast user ids this thread or reply @mentions.
    - `reactions` object, required
    - `attachmentOrigin` string, uri, nullable, required
    - `attachments` object[], required
      - `id` string, required
      - `name` string, required
      - `contentType` string, required
      - `size` integer, required
      - `kind` 'screenshot' | 'image' | 'file', required
      - `crop` object
        - `x` number, required
        - `y` number, required
        - `width` number, required
        - `height` number, required
      - `url` string, nullable, required
    - `comments` object[], required
      - `attachments` object[], required
        - `id` string, required
        - `name` string, required
        - `contentType` string, required
        - `size` integer, required
        - `kind` 'screenshot' | 'image' | 'file', required
        - `crop` object
          - `x` number, required
          - `y` number, required
          - `width` number, required
          - `height` number, required
        - `url` string, nullable, required
      - `mentions` string[], required: Spacefast user ids this thread or reply @mentions.
    - `permalink` string, nullable, required
    - `dashboardUrl` string, uri, nullable, required: The thread in the dashboard, opened with the reader's own sign-in. Null without a team.
    - `createdAt` string, date-time, required: When the thread started. Never changes.
    - `lastActivityAt` string, date-time, required: When the latest message was posted. Resolving, reopening and reactions don't move it.
    - `updatedAt` string, date-time, nullable, required: When anything on the thread last changed. Lists are ordered by it.

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

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