PATCH
/
v4
/
threads
/
{thread_id}
/
messages
/
{application_interaction_id}

Authorizations

x-api-key
string
headerrequired

Headers

x-selected-account-id
string

Path Parameters

thread_id
string
required
application_interaction_id
string
required

Query Parameters

fetch_by_account
boolean
default: false

Fetch the thread by account instead of user

Body

application/json
output_text
string

The output text generated by the application.

Response

200 - application/json
id
string
required
input
object
required
output
object
required
aggregated
boolean
required
application_spec_id
string
required
application_variant_id
string
required
start_timestamp
string
required
duration_ms
integer
required

How much time the step took in milliseconds(ms)

operation_status
enum<string>
required

The outcome of the operation

Available options:
SUCCESS,
ERROR
operation_metadata
object

The JSON representation of the metadata insights emitted through the execution. This can differ based on different types of operations

chat_thread_id
string
interaction_source
enum<string>

An enumeration.

Available options:
EXTERNAL_AI,
EVALUATION,
SGP_CHAT
created_at
string
required

The date and time when the entity was created in ISO format.