Delen via


Chat - Delete Chat Thread

Hiermee wordt een thread verwijderd.

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

URI-parameters

Name In Vereist Type Description
chatThreadId
path True

string

Id van de thread die moet worden verwijderd.

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 chat thread

Sample Request

DELETE https://contoso.westus.communications.azure.com/chat/threads/19:9525281ac1f947fc884bcee1a9f983c2@thread.v2?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."
  }
}