Поделиться через


Chat Thread - Delete Chat Message

Удаляет сообщение.

DELETE {endpoint}/chat/threads/{chatThreadId}/messages/{chatMessageId}?api-version=2024-03-07

Параметры URI

Имя В Обязательно Тип Описание
chatMessageId
path True

string

Идентификатор сообщения.

chatThreadId
path True

string

Идентификатор потока, в который отправлено сообщение.

endpoint
path True

string

Конечная точка ресурса связи Azure.

api-version
query True

string

Версия API для вызова.

Заголовок запроса

Имя Обязательно Тип Описание
Authorization True

string

Маркер доступа пользователей ACS (Службы коммуникации Azure).

Ответы

Имя Тип Описание
204 No Content

Запрос успешно выполнен.

401 Unauthorized

CommunicationErrorResponse

Несанкционированный.

403 Forbidden

CommunicationErrorResponse

Запретный.

429 Too Many Requests

CommunicationErrorResponse

Слишком много запросов.

Other Status Codes

CommunicationErrorResponse

Служба недоступна.

Безопасность

Authorization

Маркер доступа пользователей ACS (Службы коммуникации Azure).

Тип: apiKey
В: header

Примеры

Delete message

Образец запроса

DELETE https://contoso.westus.communications.azure.com/chat/threads/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/messages/1591768249318?api-version=2024-03-07

Пример ответа

{
  "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."
  }
}