POST
/
session
/
{session_external_id}
/
update
curl --request POST \
  --url https://main.treble.ai/session/{session_external_id}/update \
  --header 'content-type: <content-type>' \
  --data '{
  "user_session_keys": [
    {
      "key": "order",
      "value": "1 Cheeseburger, 2 Sodas"
    }
  ]
}'
{
  "message": "Session successfully updated",
  "session_id": "f33b4734a2e5db671b59877ed3f662ec1f6332a0418c25de4868e35a"
}

Headers

content-type
enum<string>
required
Available options:
application/json

Path Parameters

session_external_id
string
required

External ID of the user's session. Obtained from the 'session_external_id' field in the response of the webhook triggered by the user's first interaction.

Body

application/json

Information about the session keys to be updated

The body is of type object.

Response

200
application/json

Session successfully updated

The response is of type object.