Comments

6 Trellis API endpoints for comments, with the scopes, parameters and response each one takes.

Edit a comment

PUT/workspace/{handle}/comments/{id}

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

idstringRequired

Request bodyapplication/json

UpdateCommentRequest

bodyanynullable

Responses

200OK

CommentResponse

bodyanynullable
created_atstring
created_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
idstring
issue_idstring
parent_comment_idstringnullable
reactionsarray of CommentReactionSummarynullable
4 fields
countinteger
reaction_typestring
reactorsarray of CommentReactornullable
6 fields
avatarstring
avatar_gradientstring
emailstring
namestring
reacted_atstring
user_idstring
user_idsarray of stringnullable
updated_atstring
updated_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

Delete a comment

DELETE/workspace/{handle}/comments/{id}

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

idstringRequired

Responses

200OK

Confirmation message.

string

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

React to a comment

POST/workspace/{handle}/comments/{id}/reactions

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

idstringRequired

Request bodyapplication/json

AddCommentReactionRequest

reaction_typestringRequired

Responses

201Created

CommentResponse

bodyanynullable
created_atstring
created_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
idstring
issue_idstring
parent_comment_idstringnullable
reactionsarray of CommentReactionSummarynullable
4 fields
countinteger
reaction_typestring
reactorsarray of CommentReactornullable
6 fields
avatarstring
avatar_gradientstring
emailstring
namestring
reacted_atstring
user_idstring
user_idsarray of stringnullable
updated_atstring
updated_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

Remove the caller's reaction from a comment

DELETE/workspace/{handle}/comments/{id}/reactions/{reactionType}

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

idstringRequired
reactionTypestringRequired

Responses

200OK

CommentResponse

bodyanynullable
created_atstring
created_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
idstring
issue_idstring
parent_comment_idstringnullable
reactionsarray of CommentReactionSummarynullable
4 fields
countinteger
reaction_typestring
reactorsarray of CommentReactornullable
6 fields
avatarstring
avatar_gradientstring
emailstring
namestring
reacted_atstring
user_idstring
user_idsarray of stringnullable
updated_atstring
updated_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

List an issue's comments

GET/workspace/{handle}/issues/{issueId}/comments

Scopes

Needs a token holding issues:read, issues:write or projects:read.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

issueIdstringRequired

Issue UUID. The issue's code, e.g. `T001-42`, is not accepted here.

Query parameters

pageinteger

Page to return, starting at 1. Defaults to 1.

limitinteger

Page size, 1 to 100. Defaults to 20.

Responses

200OK

object

countinteger

Unfiltered item count, where the endpoint reports one. Omitted when zero.

dataarray of CommentResponsenullable
9 fields
bodyanynullable
created_atstring
created_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
idstring
issue_idstring
parent_comment_idstringnullable
reactionsarray of CommentReactionSummarynullable
4 fields
countinteger
reaction_typestring
reactorsarray of CommentReactornullable
6 fields
avatarstring
avatar_gradientstring
emailstring
namestring
reacted_atstring
user_idstring
user_idsarray of stringnullable
updated_atstring
updated_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
limitinteger

Page size used for this response. Omitted when zero.

pageinteger

Current page, starting at 1. Omitted when zero.

totalinteger

Number of items matching the filters. Omitted when zero.

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

Comment on an issue

POST/workspace/{handle}/issues/{issueId}/comments

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

issueIdstringRequired

Request bodyapplication/json

CreateCommentRequest

bodyanynullable
issue_idstring
parent_comment_idstringnullable

Responses

201Created

CommentResponse

bodyanynullable
created_atstring
created_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
idstring
issue_idstring
parent_comment_idstringnullable
reactionsarray of CommentReactionSummarynullable
4 fields
countinteger
reaction_typestring
reactorsarray of CommentReactornullable
6 fields
avatarstring
avatar_gradientstring
emailstring
namestring
reacted_atstring
user_idstring
user_idsarray of stringnullable
updated_atstring
updated_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.