Skip to main content
POST
Detach Comment
Use this API to detach a person’s comment from the check it was attached to. The comment’s checkInfo is removed and the check’s counts are updated. The comment itself, its status and its replies are not changed.

Endpoint

POST https://api.velt.dev/v2/agents/checks/comments/detach

Headers

string
required
Your API key.
string
required

Body

Params

object
required
The schema uses .strict(): unknown fields are rejected.

Example Requests

Response

Success Response

Failure Response

Errors: INVALID_ARGUMENT (a body outside the schema: a missing or malformed annotationId, a missing userId, or an unknown field) / NOT_FOUND with CHECKS_COMMENT_NOT_FOUND (no such comment in the project) or CHECKS_WORKSPACE_NOT_FOUND (the workspace has no store database) / FAILED_PRECONDITION with CHECKS_AGENT_COMMENT_NOT_ATTACHABLE (an agent comment) or CHECKS_COMMENT_NOT_ATTACHED (the comment is not attached to a check).