Chat Thread - Update Chat Thread Properties
Aggiorna le proprietà di un thread.
PATCH {endpoint}/chat/threads/{chatThreadId}?api-version=2024-03-07
Parametri dell'URI
Nome | In | Necessario | Tipo | Descrizione |
---|---|---|---|---|
chat
|
path | True |
string |
ID del thread da aggiornare. |
endpoint
|
path | True |
string |
Endpoint della risorsa di comunicazione di Azure. |
api-version
|
query | True |
string |
Versione dell'API da richiamare. |
Intestazione della richiesta
Media Types: "application/merge-patch+json"
Nome | Necessario | Tipo | Descrizione |
---|---|---|---|
Authorization | True |
string |
Un token di accesso utente ACS (Servizi di comunicazione di Azure). |
Corpo della richiesta
Media Types: "application/merge-patch+json"
Nome | Tipo | Descrizione |
---|---|---|
topic |
string |
Argomento del thread di chat. |
Risposte
Nome | Tipo | Descrizione |
---|---|---|
204 No Content |
Il thread è stato aggiornato correttamente. |
|
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
Update chat thread topic
Esempio di richiesta
PATCH https://contoso.westus.communications.azure.com/chat/threads/19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2?api-version=2024-03-07
{
"topic": "Updated Thread Topic"
}
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
UpdateChatThreadRequest
Richiedere il payload per l'aggiornamento di un thread di chat.
Nome | Tipo | Descrizione |
---|---|---|
topic |
string |
Argomento del thread di chat. |