Delen via


Chat Thread - Delete Chat Message

Hiermee verwijdert u een bericht.

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

URI-parameters

Name In Vereist Type Description
chatMessageId
path True

string

De bericht-id.

chatThreadId
path True

string

De thread-id waarnaar het bericht is verzonden.

endpoint
path True

string

Het eindpunt van de Azure Communication-resource.

api-version
query True

string

Versie van de API die moet worden aangeroepen.

Aanvraagkoptekst

Name Vereist Type Description
Authorization True

string

Een ACS-toegangstoken (Azure Communication Services) voor gebruikers.

Antwoorden

Name Type Description
204 No Content

De aanvraag is voltooid.

401 Unauthorized

CommunicationErrorResponse

Onbevoegd.

403 Forbidden

CommunicationErrorResponse

Verboden.

429 Too Many Requests

CommunicationErrorResponse

Te veel aanvragen.

Other Status Codes

CommunicationErrorResponse

Service niet beschikbaar.

Beveiliging

Authorization

Een ACS-toegangstoken (Azure Communication Services) voor gebruikers.

Type: apiKey
In: header

Voorbeelden

Delete message

Sample Request

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

Sample Response

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