Chat Thread - Delete Chat Message
メッセージを削除します。
DELETE {endpoint}/chat/threads/{chatThreadId}/messages/{chatMessageId}?api-version=2025-03-15
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
chat
|
path | True |
string |
メッセージ ID。 |
|
chat
|
path | True |
string |
メッセージが送信されたスレッド ID。 |
|
endpoint
|
path | True |
string |
Azure Communication リソースのエンドポイント。 |
|
api-version
|
query | True |
string |
呼び出す API のバージョン。 |
要求ヘッダー
| 名前 | 必須 | 型 | 説明 |
|---|---|---|---|
| Authorization | True |
string |
ACS (Azure Communication Services) ユーザー アクセス トークン。 |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 204 No Content |
要求が成功しました。 |
|
| 401 Unauthorized |
Communication |
許可されていません。 |
| 403 Forbidden |
Communication |
禁じられた。 |
| 429 Too Many Requests |
Communication |
要求が多すぎます。 |
| Other Status Codes |
Communication |
サービスを使用できません。 |
セキュリティ
Authorization
ACS (Azure Communication Services) ユーザー アクセス トークン。
型:
apiKey
/:
header
例
Delete message
要求のサンプル
DELETE https://contoso.westus.communications.azure.com/chat/threads/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/messages/1591768249318?api-version=2025-03-15
応答のサンプル
{
"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."
}
}