Skip to content

Comment on a timeline entry or a History row

The OpenAPI spec (JSON)Licence, versions and sign-in

POST
/api/v1/comments
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" }'

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.

object
target
required

What a comment is on: a timeline entry, or a card in History.

One of:
object
id
required
integer format: int64
type
required
string
Allowed value: timeline
text
required
string
>= 1 characters <= 4000 characters
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

What a comment is on: a timeline entry, or a card in History.

One of:
object
id
required
integer format: int64
type
required
string
Allowed value: timeline
text
required
string
to

The session it went to.

Any of:

A session by its tab, on a node. session_id pins one conversation when the tab has been reused.

object
node
required
string
>= 1 characters <= 100 characters
session_id
string | null
tab
required
string
>= 1 characters <= 200 characters

Example

{
"target": {
"type": "timeline"
}
}

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"
}