Submits request to cancel an existing job by Id while supplying free-form cancellation reason.

Changed on

Submits request to cancel an existing job by Id while supplying free-form cancellation reason.

post/routing/jobs/{jobId}:cancel

Request

  • Base URL
    {endpoint}
  • Auth
    OAuth 2
    Authorization codehttps://login.microsoftonline.com/common/oauth2/authorize
    Token URLhttps://login.microsoftonline.com/common/oauth2/token
    Scopeshttps://communication.azure.com/.default

Path parameters

jobIdstring required

Id of a job.

Query parameters

api-versionstring required

The API version to use for this operation.

Request body

notestring

A note that will be appended to a job's Notes collection with the current timestamp.

dispositionCodestring

Indicates the outcome of a job, populate this field with your own custom values. If not provided, default value of "Cancelled" is set.

Response

The request has succeeded.

CancelJobResult required

Response payload from cancelling a job.

Changes

    • warning

      the optional response header x-ms-error-code removed for the status default

    • info

      api operation id JobRouterOperations_CancelJob removed and replaced with JobRouter_CancelJobAction

    • info

      api tag Jobs added