Create a comment for an item

Creates a human-authored comment on an item. The comment is attributed to the user represented by the access token and is displayed in the item timeline with an API-origin indicator.

Only a personal access token with write scope and access to the item's project is supported. Project Access Tokens and service tokens are rejected.

Comment text supports the same Markdown and mention behavior as comments created in the Rollbar UI. The encoded comment and its stored metadata must fit in the existing 65,535-byte item-comment data field.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required
≥ 1

The item ID

Query Params
integer
required
≥ 1

Project ID containing the item.

Body Params
string
required
length ≥ 1

Comment text. Text containing only whitespace is rejected.

Headers
string
required

Use a personal access token with 'write' scope. Project Access Tokens and service tokens are not supported.

Responses

400

Invalid item ID, project ID, or JSON body.

403

The token lacks write scope, is not a personal access token, or its user cannot comment in the project.

404

The item does not exist in the supplied project.

413

The comment exceeds the supported storage limit.

415

Content-Type must be application/json.

422

The comment is missing, not a string, or contains only whitespace.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json; charset=utf-8