Resolve comment thread

Resolve a comment thread

Marks an open thread resolved, which frees its target for a new thread. Needs the RESOLVE_COMMENTS permission, unless the user started the thread.

Request

POST https://www.activityinfo.org/resources/form/{formId}/record/{recordId}/comments/{threadId}/resolve

Successful response

application/json

object
thread object The thread itself. required
subscribed boolean True if the user is notified of activity in the thread. required
unread boolean True if the thread has activity the user has not yet seen. required
recordLabel string The record's label as the user sees it, or absent when the thread was listed without labels. optional
comments array[object] The thread's entries in time order, or empty when the thread was listed without its comments. required
users array[object] The authors, subscribers and mentioned users referred to by this view, so that the client can show names without a lookup. required

Error responses

Status Code Error Code Description
400 INVALID_MENTION A mentioned user is not a user of the database or cannot see the record.
400 INVALID_REQUEST The request is malformed: an id is missing or invalid, or the text is empty.
401 AUTHENTICATION_REQUIRED The request must be authenticated
403 FORBIDDEN The user may see the thread but lacks the permission for this operation.
404 NOT_FOUND The form, record, thread or comment does not exist, or the user may not see it.
409 THREAD_ALREADY_OPEN The target already has an open thread; it must be resolved before another is started.
409 THREAD_NOT_RESOLVED The thread is not resolved, so it cannot be reopened.
409 THREAD_RESOLVED The thread is resolved; it can be read and reopened, but not replied to.

Example

curl -X POST https://www.activityinfo.org/resources/form/ck8pu9ha07/record/ck34ujs6v8/comments/cm2f8xk3v0q1/resolve \
  -u anything:APITOKEN
Next item
Restore user