Delete comment

Delete a comment

Deletes one of the user's own comments, or, with the RESOLVE_COMMENTS permission, any comment of the thread. The comment stays in the thread as a placeholder with its text cleared. Returns the thread afterwards, or 204 No Content if deleting the thread's only comment removed the thread. Fails with 403 FORBIDDEN if the user may not delete the comment and 404 NOT_FOUND if the thread or comment does not exist.

Request

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

Response

Status Code Error Code Description
401 AUTHENTICATION_REQUIRED The request must be authenticated

Example

curl -X DELETE -u anything:YOUR_API_TOKEN \
  https://www.activityinfo.org/resources/form/ck8pu9ha07/record/ck34ujs6v8/comments/cm2f8xk3v0q1/comments/cm2f8xk3v0q3
Next item
Delete database