Comment on a timeline entry or a History row
POST
/api/v1/comments
const url = 'https://deck.example.com/api/v1/comments';const options = { method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"target":{"id":1,"type":"timeline"},"text":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://deck.example.com/api/v1/comments \ --header 'Content-Type: application/json' \ --cookie qd_auth=<qd_auth> \ --data '{ "target": { "id": 1, "type": "timeline" }, "text": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The person comments on a timeline entry or a History row. It reaches the agent like an adjustment, and anything it proposes comes back as a card.
Media typeapplication/json
The person comments on a timeline entry or a History row. It reaches the agent like an adjustment, and anything it proposes comes back as a card.
Responses
Section titled “Responses”Media typeapplication/json
object
created_at
required
string
id
required
integer format: int64
on
required
What it’s on, in a line: the entry’s text, or the card’s subject.
string
picked_up_at
string | null
target
required
text
required
string
Example
{ "target": { "type": "timeline" }}default
Section titled “default”An error, with its message.
Media typeapplication/json
Every error the REST API returns, with an HTTP status.
object
error
required
string
Example generated
{ "error": "example"}