Chat Thread - Update Chat Thread Properties
Memperbarui properti utas.
PATCH {endpoint}/chat/threads/{chatThreadId}?api-version=2024-03-07
Parameter URI
Nama | Dalam | Diperlukan | Jenis | Deskripsi |
---|---|---|---|---|
chat
|
path | True |
string |
Id utas yang akan diperbarui. |
endpoint
|
path | True |
string |
Titik akhir sumber daya Azure Communication. |
api-version
|
query | True |
string |
Versi API yang akan dipanggil. |
Header Permintaan
Media Types: "application/merge-patch+json"
Nama | Diperlukan | Jenis | Deskripsi |
---|---|---|---|
Authorization | True |
string |
Token akses pengguna ACS (Azure Communication Services). |
Isi Permintaan
Media Types: "application/merge-patch+json"
Nama | Jenis | Deskripsi |
---|---|---|
topic |
string |
Topik utas obrolan. |
Respons
Nama | Jenis | Deskripsi |
---|---|---|
204 No Content |
Utas berhasil diperbarui. |
|
401 Unauthorized |
Communication |
Sah. |
403 Forbidden |
Communication |
Dilarang. |
429 Too Many Requests |
Communication |
Terlalu banyak permintaan. |
Other Status Codes |
Communication |
Layanan tidak tersedia. |
Keamanan
Authorization
Token akses pengguna ACS (Azure Communication Services).
Jenis:
apiKey
Dalam:
header
Contoh
Update chat thread topic
Permintaan sampel
PATCH https://contoso.westus.communications.azure.com/chat/threads/19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2?api-version=2024-03-07
{
"topic": "Updated Thread Topic"
}
Respon sampel
{
"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."
}
}
Definisi
UpdateChatThreadRequest
Minta payload untuk memperbarui utas obrolan.
Nama | Jenis | Deskripsi |
---|---|---|
topic |
string |
Topik utas obrolan. |