Skip to content

Resolve, reopen or edit a comment

PATCH
/api/orgs/{org}/projects/{project}/comments/{id}
curl --request PATCH \
--url https://api-dev.wrktr.com/api/orgs/example/projects/example/comments/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "branch": "example", "status": "open", "body": "example" }'

A thread whose review was dismissed can’t be reopened (Forbidden): start a new comment instead.

org
required
string
project
required
string
id
required
string
Media typeapplication/json
object
branch
required
string
status
Any of:
string
Allowed values: open resolved
body
Any of:
string
>= 1 characters

Comment

Media typeapplication/json
object
id
required
string
branch
required
string
path
required
string
line
required
Any of:
number
anchorSha
required
string
lineText
required
string
body
required
string
author
required
string
authorKind
required
string
Allowed values: human agent
parentId
required
Any of:
string
status
required
string
Allowed values: open resolved outdated
reviewId
required
Any of:
string
resolvedSha
required
Any of:
string
createdAt
required
Any of:
number
updatedAt
required
Any of:
number
severity
required
Any of:
string
Allowed values: blocker issue nit
Example
{
"line": "Infinity",
"authorKind": "human",
"status": "open",
"createdAt": "Infinity",
"updatedAt": "Infinity",
"severity": "blocker"
}

Unauthorized

Media typeapplication/json
object
_tag
required
string
Allowed values: Unauthorized
message
required
string
Example
{
"_tag": "Unauthorized"
}

Forbidden

Media typeapplication/json
object
_tag
required
string
Allowed values: Forbidden
message
required
string
Example
{
"_tag": "Forbidden"
}

ProjectNotFound | BranchNotFound | CommentNotFound

Media typeapplication/json
Any of:
object
_tag
required
string
Allowed values: ProjectNotFound
project
required
string
Example
{
"_tag": "ProjectNotFound"
}