PUT
/
jobs
/
status
/
cancel
curl -X PUT "https://api.ionq.co/v0.2/jobs/status/cancel" \
  -H "Authorization: apiKey your-api-key"
  -d '{ \
        "ids": [ \
            "617a1f8b-59d4-435d-aa33-695433d7155e", \
            "2ccf2773-4c28-468e-a290-2f8554808a25", \
            "f92df2b6-d212-4f4a-b9ea-024b58c5c3e8" \
        ] \
    }'
{
  "ids": [
    "aa54e783-0a9b-4f73-ad2f-63983b6aa4a8"
  ],
  "status": "canceled"
}

Authorizations

Authorization
string
headerrequired

We provide API keys to govern access—we'll provision your account with one key, and more can be provided upon request.

Every key is fully privileged within the system, and should be kept private.

To authenticate, prefix your API Key with apiKey and place it in the Authorization request header. For example: Authorization: apiKey your-api-key

Body

application/json
ids
string[]

A list of job UUIDs to cancel.

Response

200 - application/json
ids
string[]
required

A list of UUIDs of cancelled jobs.

status
enum<string>
required

Status of a job (always canceled).

Available options:
canceled