6 Trellis API endpoints for inline comments, with the scopes, parameters and response each one takes.
List inline comment threads on an entity
/workspace/{handle}/inline-comments/{entityType}/{entityId}Scopes
Needs a token holding issues:read, issues:write or projects:read.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
entityTypestringRequiredentityIdstringRequiredResponses
200OK
array of InlineCommentThreadResponse
commentsarray of InlineCommentResponsenullable5 fields
bodyanynullablecreated_atstringcreated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringidstringreactionsarray of InlineCommentReactionSummarynullable3 fields
countintegerreaction_typestringuser_idsarray of stringnullablecreated_atstringentity_idstringentity_typestringidstringquoted_textstringresolvedbooleandefaultError. 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 an inline comment
/workspace/{handle}/inline-comments/comments/{commentId}/reactionsScopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
commentIdstringRequiredRequest bodyapplication/json
AddInlineCommentReactionRequest
reaction_typestringRequiredResponses
201Created
InlineCommentStatus
statusstringdefaultError. 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 an inline comment
/workspace/{handle}/inline-comments/comments/{commentId}/reactions/{reactionType}Scopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
commentIdstringRequiredreactionTypestringRequiredResponses
200OK
InlineCommentStatus
statusstringdefaultError. 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.
Start an inline comment thread
/workspace/{handle}/inline-comments/threadsScopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
Request bodyapplication/json
CreateInlineCommentThreadRequest
bodyanynullableentity_idstringRequiredentity_typestringRequiredquoted_textstringthread_idstringResponses
201Created
InlineCommentThreadResponse
commentsarray of InlineCommentResponsenullable5 fields
bodyanynullablecreated_atstringcreated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringidstringreactionsarray of InlineCommentReactionSummarynullable3 fields
countintegerreaction_typestringuser_idsarray of stringnullablecreated_atstringentity_idstringentity_typestringidstringquoted_textstringresolvedbooleandefaultError. 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.
Reply to an inline comment thread
/workspace/{handle}/inline-comments/threads/{threadId}/commentsScopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
threadIdstringRequiredRequest bodyapplication/json
AddInlineCommentRequest
bodyanynullableRequiredResponses
201Created
InlineCommentThreadResponse
commentsarray of InlineCommentResponsenullable5 fields
bodyanynullablecreated_atstringcreated_byUserReference5 fields
avatarstringavatar_gradientstringemailstringidstringnamestringidstringreactionsarray of InlineCommentReactionSummarynullable3 fields
countintegerreaction_typestringuser_idsarray of stringnullablecreated_atstringentity_idstringentity_typestringidstringquoted_textstringresolvedbooleandefaultError. 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.
Resolve an inline comment thread
/workspace/{handle}/inline-comments/threads/{threadId}/resolveScopes
Needs a token holding issues:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
threadIdstringRequiredResponses
200OK
InlineCommentStatus
statusstringdefaultError. 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.