Talk Analytics API, REST: Talk.UploadText
rpc for uploading text talk document
HTTP request
POST https://rest-api.speechsense.yandexcloud.net/speechsense/v1/talks/uploadText
Body parameters
{
"metadata": {
"connectionId": "string",
"fields": "string",
"users": [
{
"id": "string",
"role": "string",
"fields": "string"
}
]
},
"textContent": {
"messages": [
{
"userId": "string",
"timestamp": "string",
// Includes only one of the fields `text`
"text": {
"text": "string"
}
// end of the list of possible fields
}
]
}
}
request to create text based dialog
Field |
Description |
metadata |
|
textContent |
TalkMetadata
Field |
Description |
connectionId |
string id of connection this talk belongs too |
fields |
string channel defined fields |
users[] |
per user specific metadata |
UserMetadata
Field |
Description |
id |
string |
role |
enum (UserRole)
|
fields |
string |
TextContent
Field |
Description |
messages[] |
Message
Field |
Description |
userId |
string |
timestamp |
string (date-time) String in RFC3339 To work with values in this field, use the APIs described in the |
text |
Includes only one of the fields |
TextPayload
Field |
Description |
text |
string |
Response
HTTP Code: 200 - OK
{
"talkId": "string"
}
Field |
Description |
talkId |
string id of created talk document |