Chat Thread - Send Chat Read Receipt
Invia un evento di ricezione di lettura a un thread, per conto di un utente.
POST {endpoint}/chat/threads/{chatThreadId}/readReceipts?api-version=2024-03-07
Parametri dell'URI
Nome | In | Necessario | Tipo | Descrizione |
---|---|---|---|---|
chat
|
path | True |
string |
ID thread a cui inviare l'evento di ricezione di lettura. |
endpoint
|
path | True |
string |
Endpoint della risorsa di comunicazione di Azure. |
api-version
|
query | True |
string |
Versione dell'API da richiamare. |
Intestazione della richiesta
Nome | Necessario | Tipo | Descrizione |
---|---|---|---|
Authorization | True |
string |
Un token di accesso utente ACS (Servizi di comunicazione di Azure). |
Corpo della richiesta
Nome | Necessario | Tipo | Descrizione |
---|---|---|---|
chatMessageId | True |
string |
ID del messaggio di chat più recente letto dall'utente. |
Risposte
Nome | Tipo | Descrizione |
---|---|---|
200 OK |
Richiesta riuscita. |
|
401 Unauthorized |
Communication |
Non autorizzato. |
403 Forbidden |
Communication |
Vietato. |
429 Too Many Requests |
Communication |
Troppe richieste. |
Other Status Codes |
Communication |
Servizio non disponibile. |
Sicurezza
Authorization
Un token di accesso utente ACS (Servizi di comunicazione di Azure).
Tipo:
apiKey
In:
header
Esempio
Send read receipt
Esempio di richiesta
POST https://contoso.westus.communications.azure.com/chat/threads/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/readReceipts?api-version=2024-03-07
{
"chatMessageId": "1591137790240"
}
Risposta di esempio
{
"error": {
"code": "Unauthorized",
"message": "Request is not authorized."
}
}
{
"error": {
"code": "Forbidden",
"message": "User is not allowed to perform specified action."
}
}
{
"error": {
"code": "TooManyRequests",
"message": "Rate limit exceeded."
}
}
{
"error": {
"code": "ServiceUnavailable",
"message": "The server is currently unable to handle the request."
}
}
Definizioni
SendReadReceiptRequest
Richiedere il payload per l'invio di una ricevuta di lettura.
Nome | Tipo | Descrizione |
---|---|---|
chatMessageId |
string |
ID del messaggio di chat più recente letto dall'utente. |