Share via


Phone Numbers - Cancel Operation

Cancels an operation by its id.

DELETE {endpoint}/phoneNumbers/operations/{operationId}?api-version=2021-03-07

URI Parameters

Name In Required Type Description
endpoint
path True

string

The communication resource, for example https://resourcename.communication.azure.com.

operationId
path True

string

The id of the operation

api-version
query True

string

Version of API to invoke.

Responses

Name Type Description
204 No Content

Success

Other Status Codes

CommunicationErrorResponse

Failure

Examples

Delete long running operation with the given operation id

Sample Request

DELETE https://resourcename.communication.azure.com//phoneNumbers/operations/search_my-operation-id?api-version=2021-03-07

Sample Response

Definitions

Name Description
CommunicationError

The Communication Services error.

CommunicationErrorResponse

The Communication Services error.

CommunicationError

The Communication Services error.

Name Type Description
code

string

The error code.

details

CommunicationError[]

Further details about specific errors that led to this error.

innererror

CommunicationError

The inner error if any.

message

string

The error message.

target

string

The error target.

CommunicationErrorResponse

The Communication Services error.

Name Type Description
error

CommunicationError

The Communication Services error.