Comments

Resolve a comment thread

Changed on

Marks a comment thread as resolved. Already-resolved threads return the current thread. Guests who can comment still need thread-manage permission; otherwise the call returns forbidden. Missing threads and inaccessible projects return 404. Mutating public API requests support an optional Idempotency-Key header for client retries; duplicate keys within two hours return idempotency_duplicate.

post/projects/{projectId}/comment-threads/{threadId}/resolve

Request

  • Base URL
    https://app.flora.ai/api/v1
  • URL
    https://app.flora.ai/api/v1/projects/{projectId}/comment-threads/{threadId}/resolve
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

Project identifier

Example:prj_abc123
threadIdstring required

Comment thread identifier

Example:cth_abc123

Response

Comment thread resolved.

comment_thread_idstring required

Comment thread identifier

project_idstring required

Project identifier

workspace_idstring required

Workspace identifier

status'open' | 'resolved' required

Whether the thread is still open

resolved_atnumber nullable required

When the thread was resolved, as a Unix timestamp in milliseconds. Null while open.

created_atnumber required

When the thread was created, as a Unix timestamp in milliseconds

last_comment_atnumber nullable required

When the latest live comment was created, as a Unix timestamp in milliseconds. Null when the thread has no live comments.

comment_countinteger required

Number of live comments in the thread

anchor'canvas' | 'generation' required

Where the thread is pinned. canvas is a pin on the project canvas. generation is a review thread on a generation.

generation_idstring

Public run id of the generation this review thread is pinned to. Absent on canvas threads.

Example response

{
  "comment_thread_id": "cth_abc123",
  "project_id": "prj_abc123",
  "workspace_id": "ws_abc123",
  "generation_id": "run_abc123",
  "preview": {
    "comment_id": "cmt_abc123",
    "body": "Looks good — ship it.",
    "author": {
      "name": "Ada Lovelace"
    }
  },
  "messages": [
    {
      "comment_id": "cmt_abc123",
      "body": "Looks good — ship it.",
      "author": {
        "name": "Ada Lovelace"
      }
    }
  ]
}

Changes

    • warning

      added the new not_configured enum value to the / response property for the response status

    • warning

      added the new not_configured enum value to the / response property for the response status

    • warning

      added the new not_configured enum value to the / response property for the response status

    • warning

      added the new not_configured enum value to the / response property for the response status

    • warning

      added the new not_configured enum value to the / response property for the response status

    • warning

      added the new not_configured enum value to the / response property for the response status

    • warning

      added the new not_configured enum value to the / response property for the response status

    • warning

      added the new not_configured enum value to the / response property for the response status

    • warning

      added the new not_configured enum value to the / response property for the response status

    • info

      endpoint added