capabilities.work

Pause Session and Confirm

A 3-step recipe with IBM Quantum. We can help you get access.

Recipe · 3 steps

Pause Session and Confirm

Toggle a session's accepting-jobs flag and confirm the new state.

  1. Read the session's current state and accepting-jobs flag before changing it.
  2. Update the session to start or stop accepting new jobs based on the supplied flag. A 204 confirms the update.
  3. Re-read the session to confirm its accepting-jobs flag now matches the requested value.
What you'll need to have ready
  • accessToken: IBM Cloud IAM bearer token used in the Authorization header.
  • serviceCrn: IBM Cloud Service CRN identifying the Qiskit Runtime instance.
  • apiVersion: API version date sent in the IBM-API-Version header (e.g. 2026-03-15).
  • sessionId: Identifier of the session to inspect and update.
  • acceptingJobs: Whether the session should accept new jobs (true) or stop accepting them (false).
For your developer

Arazzo workflow ibm-quantum:pause-session-and-confirm, 3 operations: get_session → update_session → get_session. Specs on APIs.io.