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 user-scoped Account Access Token with write scope and access to the item's project is supported. Project Access Tokens and account-wide Account Access 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 user-scoped Account Access Token with write scope. Project and account-wide Account tokens are not supported.

Responses

400

Invalid item ID, project ID, JSON body, or comment text.

403

The token lacks write scope, is not user-scoped, 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.

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