Chat Thread - Delete Chat Message
Usuwa komunikat.
DELETE {endpoint}/chat/threads/{chatThreadId}/messages/{chatMessageId}?api-version=2024-03-07
Parametry identyfikatora URI
Nazwa | W | Wymagane | Typ | Opis |
---|---|---|---|---|
chat
|
path | True |
string |
Identyfikator wiadomości. |
chat
|
path | True |
string |
Identyfikator wątku, do którego wysłano wiadomość. |
endpoint
|
path | True |
string |
Punkt końcowy zasobu usługi Azure Communication. |
api-version
|
query | True |
string |
Wersja interfejsu API do wywołania. |
Nagłówek żądania
Nazwa | Wymagane | Typ | Opis |
---|---|---|---|
Authorization | True |
string |
Token dostępu użytkownika usług ACS (Azure Communication Services). |
Odpowiedzi
Nazwa | Typ | Opis |
---|---|---|
204 No Content |
Żądanie powiodło się. |
|
401 Unauthorized |
Communication |
Nieautoryzowanych. |
403 Forbidden |
Communication |
Zakazany. |
429 Too Many Requests |
Communication |
Zbyt wiele żądań. |
Other Status Codes |
Communication |
Usługa jest niedostępna. |
Zabezpieczenia
Authorization
Token dostępu użytkownika usług ACS (Azure Communication Services).
Typ:
apiKey
W:
header
Przykłady
Delete message
Przykładowe żądanie
DELETE https://contoso.westus.communications.azure.com/chat/threads/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/messages/1591768249318?api-version=2024-03-07
Przykładowa odpowiedź
{
"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."
}
}