PUT
/
jobs
/
status
/
cancel
cURL
curl -X PUT "https://api.ionq.co/v0.4/jobs/status/cancel" \
  -H "Authorization: apiKey your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
        "ids": [
            "617a1f8b-59d4-435d-aa33-695433d7155e",
            "2ccf2773-4c28-468e-a290-2f8554808a25",
            "f92df2b6-d212-4f4a-b9ea-024b58c5c3e8"
        ]
    }'
{
  "ids": [
    "617a1f8b-59d4-435d-aa33-695433d7155e",
    "617a1f8b-59d4-435d-aa33-695433d7155f"
  ],
  "status": "canceled"
}
Cancel multiple jobs simultaneously by providing a list of job UUIDs. This is useful for batch operations when you need to stop several queued or running jobs at once.

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

Body

application/json

Response

200 - application/json

Successfully canceled a list of jobs.

The response is of type object.