6 Trellis API endpoints for comments, with the scopes, parameters and response each one takes.
Edit a comment
/workspace/{handle}/comments/{id}Scopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredRequest bodyapplication/json
UpdateCommentRequest
bodyanynullableResponses
200OK
CommentResponse
bodyanynullablecreated_atstringcreated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringidstringissue_idstringparent_comment_idstringnullablereactionsarray of CommentReactionSummarynullable4 fields
countintegerreaction_typestringreactorsarray of CommentReactornullable6 fields
avatarstringavatar_gradientstringemailstringnamestringreacted_atstringuser_idstringuser_idsarray of stringnullableupdated_atstringupdated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringdefaultError. 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
/workspace/{handle}/comments/{id}Scopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredResponses
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
/workspace/{handle}/comments/{id}/reactionsScopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredRequest bodyapplication/json
AddCommentReactionRequest
reaction_typestringRequiredResponses
201Created
CommentResponse
bodyanynullablecreated_atstringcreated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringidstringissue_idstringparent_comment_idstringnullablereactionsarray of CommentReactionSummarynullable4 fields
countintegerreaction_typestringreactorsarray of CommentReactornullable6 fields
avatarstringavatar_gradientstringemailstringnamestringreacted_atstringuser_idstringuser_idsarray of stringnullableupdated_atstringupdated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringdefaultError. 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
/workspace/{handle}/comments/{id}/reactions/{reactionType}Scopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredreactionTypestringRequiredResponses
200OK
CommentResponse
bodyanynullablecreated_atstringcreated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringidstringissue_idstringparent_comment_idstringnullablereactionsarray of CommentReactionSummarynullable4 fields
countintegerreaction_typestringreactorsarray of CommentReactornullable6 fields
avatarstringavatar_gradientstringemailstringnamestringreacted_atstringuser_idstringuser_idsarray of stringnullableupdated_atstringupdated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringdefaultError. 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
/workspace/{handle}/issues/{issueId}/commentsScopes
Needs a token holding issues:read, issues:write or projects:read.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
issueIdstringRequiredIssue UUID. The issue's code, e.g. `T001-42`, is not accepted here.
Query parameters
pageintegerPage to return, starting at 1. Defaults to 1.
limitintegerPage size, 1 to 100. Defaults to 20.
Responses
200OK
object
countintegerUnfiltered item count, where the endpoint reports one. Omitted when zero.
dataarray of CommentResponsenullable9 fields
bodyanynullablecreated_atstringcreated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringidstringissue_idstringparent_comment_idstringnullablereactionsarray of CommentReactionSummarynullable4 fields
countintegerreaction_typestringreactorsarray of CommentReactornullable6 fields
avatarstringavatar_gradientstringemailstringnamestringreacted_atstringuser_idstringuser_idsarray of stringnullableupdated_atstringupdated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringlimitintegerPage size used for this response. Omitted when zero.
pageintegerCurrent page, starting at 1. Omitted when zero.
totalintegerNumber 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
/workspace/{handle}/issues/{issueId}/commentsScopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
issueIdstringRequiredRequest bodyapplication/json
CreateCommentRequest
bodyanynullableissue_idstringparent_comment_idstringnullableResponses
201Created
CommentResponse
bodyanynullablecreated_atstringcreated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringidstringissue_idstringparent_comment_idstringnullablereactionsarray of CommentReactionSummarynullable4 fields
countintegerreaction_typestringreactorsarray of CommentReactornullable6 fields
avatarstringavatar_gradientstringemailstringnamestringreacted_atstringuser_idstringuser_idsarray of stringnullableupdated_atstringupdated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringdefaultError. 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.