Skip to main content
POST
Upsert feedback

Headers

authorization
string
required
Pattern: ^Bearer [\s\S]{0,}$

Body

thread_id
string<uuid>
required

UUID of the thread

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
message_id
string | null
required

UUID of the message

sentiment
number
required

Sentiment rating; for messages, use -1 for down and 1 for up. For threads, use a score from 0 to 5.

Required range: -1 <= x <= 5
id
string<uuid>

UUID of the feedback

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
comment
string | null

Optional feedback comment

resource_id
string | null

Optional resource identifier

Response

Response for status 200

feedback
object
required

The feedback object