Cancel Batches
Cancel a group of batches owned by the authenticated user, matching the given criteria.
If batch_ids is provided, all other filters are ignored and only
the specified batches are canceled. To cancel all batches, use
cancel_all alone without any other filters.
Returns: A list of canceled batches and any batches that could not be canceled with their error explained.
Request Body required
Section titled “Request Body required ”Request to cancel a collection of batches.
object
List of batch IDs to cancel. If provided, all other filters are ignored.
Filter by project ID.
Filter by user ID.
Filter by device type.
Filter by batch status (only PENDING and RUNNING allowed).
Filter by whether the batch is still open.
Filter batches created on or after this date.
Filter by queue priority.
Filter by tag.
Cancel all batches. Cannot be combined with other filters.
Responses
Section titled “ Responses ”Successful Response
object
Response to a request for cancelling a bunch of batches.
object
Batches that were successfully canceled.
Response for a batch request that not includes its jobs.
This schema defines all the fields that can be publicly shared by the API.
object
Unique identifier for the batch.
ID of the parent batch if created from a retry.
Current batch status.
Deprecated. Use open instead. Indicates whether the batch is still accepting additional jobs. False means the batch is open; True means it is closed.
Whether the batch is open and accepting additional jobs.
Deprecated. Priority of the batch.
Target device type for the batch.
ID of the user who created the batch.
ID of the project this batch belongs to.
Timestamp when the batch was created.
Timestamp of the last batch update.
Serialized Pulser sequence shared by all jobs.
Total number of jobs in the batch.
Number of jobs grouped by status.
object
User-defined labels for organizing batches.
Deprecated. Use backend_configuration. Extra configuration for job execution.
object
Serialized emulator backend configuration.
URL where job results are sent via webhook.
Timestamp when processing started on hardware.
Timestamp when processing finished, errored, or was canceled.
Priority queue on which the batch is scheduled.
Example
{ "id": "00000000-0000-0000-0000-000000000002", "status": "CANCELED", "complete": true, "open": false, "priority": 0, "device_type": "FRESNEL", "user_id": "user-123", "project_id": "00000000-0000-0000-0000-000000000001", "created_at": "2025-01-15T10:30:00Z", "updated_at": "2025-01-15T10:40:00Z", "sequence_builder": "<serialized Pulser sequence>", "jobs_count": 1, "jobs_count_per_status": { "CANCELED": 1 }, "tags": [], "end_datetime": "2025-01-15T10:40:00Z", "queue_priority": "MEDIUM"}Batch IDs that could not be canceled, with error details.
object
Example
{ "batches": [ { "id": "00000000-0000-0000-0000-000000000002", "status": "CANCELED", "complete": true, "open": false, "priority": 0, "device_type": "FRESNEL", "user_id": "user-123", "project_id": "00000000-0000-0000-0000-000000000001", "created_at": "2025-01-15T10:30:00Z", "updated_at": "2025-01-15T10:40:00Z", "sequence_builder": "<serialized Pulser sequence>", "jobs_count": 2, "jobs_count_per_status": { "CANCELED": 2 }, "tags": [ "experiment-1" ], "end_datetime": "2025-01-15T10:40:00Z", "queue_priority": "MEDIUM" } ], "errors": {}}Validation Error
