def cancel_job(self, job_id: str) -> dict:
        """Cancel a job on the IonQ API.

        Args:
            job_id: The UUID of the job (returned when the job was created).

        Note that the IonQ API v0.3 can cancel a completed job, which updates its status to
        canceled.

        Returns:
            The json body of the response as a dict.
        """

        def request():
            return requests.put(f'{self.url}/jobs/{job_id}/status/cancel', headers=self.headers)

        return self._make_request(request, {}).json()
Cancel a job on the IonQ API.

        Args:
            job_id: The UUID of the job (returned when the job was created).

        Note that the IonQ API v0.3 can cancel a completed job, which updates its status to
        canceled.

        Returns:
            The json body of the response as a dict.
        
cirq-ionq/cirq_ionq/ionq_client.py