Inline comments

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

List inline comment threads on an entity

GET/workspace/{handle}/inline-comments/{entityType}/{entityId}

Scopes

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

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

entityTypestringRequired
entityIdstringRequired

Responses

200OK

array of InlineCommentThreadResponse

commentsarray of InlineCommentResponsenullable
5 fields
bodyanynullable
created_atstring
created_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
idstring
reactionsarray of InlineCommentReactionSummarynullable
3 fields
countinteger
reaction_typestring
user_idsarray of stringnullable
created_atstring
entity_idstring
entity_typestring
idstring
quoted_textstring
resolvedboolean

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 an inline comment

POST/workspace/{handle}/inline-comments/comments/{commentId}/reactions

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

commentIdstringRequired

Request bodyapplication/json

AddInlineCommentReactionRequest

reaction_typestringRequired

Responses

201Created

InlineCommentStatus

statusstring

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 an inline comment

DELETE/workspace/{handle}/inline-comments/comments/{commentId}/reactions/{reactionType}

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

commentIdstringRequired
reactionTypestringRequired

Responses

200OK

InlineCommentStatus

statusstring

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.

Start an inline comment thread

POST/workspace/{handle}/inline-comments/threads

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

Request bodyapplication/json

CreateInlineCommentThreadRequest

bodyanynullable
entity_idstringRequired
entity_typestringRequired
quoted_textstring
thread_idstring

Responses

201Created

InlineCommentThreadResponse

commentsarray of InlineCommentResponsenullable
5 fields
bodyanynullable
created_atstring
created_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
idstring
reactionsarray of InlineCommentReactionSummarynullable
3 fields
countinteger
reaction_typestring
user_idsarray of stringnullable
created_atstring
entity_idstring
entity_typestring
idstring
quoted_textstring
resolvedboolean

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.

Reply to an inline comment thread

POST/workspace/{handle}/inline-comments/threads/{threadId}/comments

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

threadIdstringRequired

Request bodyapplication/json

AddInlineCommentRequest

bodyanynullableRequired

Responses

201Created

InlineCommentThreadResponse

commentsarray of InlineCommentResponsenullable
5 fields
bodyanynullable
created_atstring
created_byUserReference
5 fields
avatarstring
avatar_gradientstring
emailstring
idstring
namestring
idstring
reactionsarray of InlineCommentReactionSummarynullable
3 fields
countinteger
reaction_typestring
user_idsarray of stringnullable
created_atstring
entity_idstring
entity_typestring
idstring
quoted_textstring
resolvedboolean

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.

Resolve an inline comment thread

POST/workspace/{handle}/inline-comments/threads/{threadId}/resolve

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

threadIdstringRequired

Responses

200OK

InlineCommentStatus

statusstring

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.