PUT
/
jobs
/
{UUID}
/
status
/
cancel
curl -X PUT "https://api.ionq.co/v0.4/jobs/617a1f8b-59d4-435d-aa33-695433d7155e/status/cancel" \
  -H "Authorization: apiKey your-api-key"
{
  "id": "617a1f8b-59d4-435d-aa33-695433d7155e",
  "status": "canceled"
}

Stop the execution of a job that is currently queued or running. Canceled jobs will not consume additional usage time, but any partial execution that has already occurred may still be billed.

Authorizations

Authorization
string
header
required

API keys are associated with a user and can be created on the IonQ Quantum Cloud application. To authenticate, prefix your API Key with apiKey and place it in the Authorization request header. Ex: Authorization: apiKey your-api-key

Path Parameters

UUID
string
required

The UUID of the job — this UUID is provided in the response on job creation.

Response

200 - application/json

Successfully canceled a job.

The response is of type object.