Delen via


Phone Numbers - Release Phone Number

Geeft een gekocht telefoonnummer vrij.

DELETE {endpoint}/phoneNumbers/{phoneNumber}?api-version=2022-12-01

URI-parameters

Name In Vereist Type Description
endpoint
path True

string

url

De communicatieresource, bijvoorbeeld https://resourcename.communication.azure.com

phoneNumber
path True

string

Telefoonnummer dat moet worden vrijgegeven, bijvoorbeeld +11234567890.

api-version
query True

string

Versie van API die moet worden aangeroepen

Antwoorden

Name Type Description
202 Accepted

De service heeft de aanvraag geaccepteerd en wordt later verwerkt. Deze retourneert 'Geaccepteerd' onmiddellijk en bevat een 'Operation-Location'-header. Clientzijde moet de bewerkingsstatus verder opvragen met behulp van de URL die is opgegeven in de header Operation-Location.

Kopteksten

  • Operation-Location: string
  • operation-id: string
  • release-id: string
Other Status Codes

CommunicationErrorResponse

Mislukking

Voorbeelden

Release phone number

Voorbeeldaanvraag

DELETE https://resourcename.communication.azure.com//phoneNumbers/+11234567890?api-version=2022-12-01

Voorbeeldrespons

Operation-Location: /phoneNumbers/operations/release_378ddf60-81be-452a-ba4f-613198ea6c28
operation-id: release_378ddf60-81be-452a-ba4f-613198ea6c28
release-id: 378ddf60-81be-452a-ba4f-613198ea6c28

Definities

Name Description
CommunicationError

De Communication Services-fout.

CommunicationErrorResponse

De Communication Services-fout.

CommunicationError

De Communication Services-fout.

Name Type Description
code

string

De foutcode.

details

CommunicationError[]

Meer informatie over specifieke fouten die tot deze fout hebben geleid.

innererror

CommunicationError

De interne fout indien aanwezig.

message

string

Het foutbericht.

target

string

Het foutdoel.

CommunicationErrorResponse

De Communication Services-fout.

Name Type Description
error

CommunicationError

De Communication Services-fout.