Delen via


Chat - Delete Chat Thread

Hiermee verwijdert u een thread.

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

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

De versie van de API die moet worden aangeroepen.

Aanvraagkoptekst

Name Vereist Type Description
Authorization True

string

Een ACS-gebruikerstoegangstoken (Azure Communication Services).

Antwoorden

Name Type Description
204 No Content

Aanvraag is voltooid.

401 Unauthorized

CommunicationErrorResponse

Ongeoorloofd.

403 Forbidden

CommunicationErrorResponse

Verboden.

429 Too Many Requests

CommunicationErrorResponse

Te veel aanvragen.

Other Status Codes

CommunicationErrorResponse

De service is niet beschikbaar.

Beveiliging

Authorization

Een ACS-gebruikerstoegangstoken (Azure Communication Services).

Type: apiKey
In: header

Voorbeelden

Delete chat thread

Voorbeeldaanvraag

DELETE https://contoso.westus.communications.azure.com/chat/threads/19:9525281ac1f947fc884bcee1a9f983c2@thread.v2?api-version=2024-03-07

Voorbeeldrespons

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