> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel the job based on the job ID and update the job status in the database



## OpenAPI

````yaml docs/avxcelerate/resource-manager-rest-api/explore.aws-pre-prod-api-resources-v1.json POST /v2/tsa/jobs/cancel/{job_id}
openapi: 3.0.3
info:
  title: AVxcelerate Explore & Analyze
  version: 2026R1.1-beta-2
  description: >-
    This is the REST API for the Explore and Analyze (TSA) application that is
    part of the Ansys AVxcelerate Autonomy.<br/>The REST API provides endpoints
    to manage logical scenarios and their related entities including associated
    assets, algorithms, Analyze jobs, simulation reports and Airflow
    Pipeline.<br/>Please refer to the Analyze and Explore User Guide available
    on the Ansys documentation portal for examples of how to use the available
    REST API features.
  contact:
    name: support@ansys.com
    email: support@ansys.com
  license:
    name: Ansys software
servers:
  - url: https://{host}/api/tsa
    variables:
      host:
        default: api.example.com
        description: Host the API is served from
security:
  - apikey: []
tags:
  - name: Logical Scenario
    description: Endpoints to manage logical scenarios and associated data
  - name: Algorithms
    description: Endpoints to manage algorithms
  - name: Monitoring
    description: Endpoints to monitor the health of the services
  - name: Analyze
    description: >-
      The endpoints that manage the configuration and status of the job in the
      Explore and Analyze application.
  - name: Simulation Reports
    description: The endpoints used to generate simulation reports
  - name: Airflow Pipeline
    description: The endpoints used to trigger a test-space analytics run with Airflow.
  - name: SUT Configuration
    description: >-
      This section is not used in this REST API, please use the dedicated SUT
      REST API to manage SUT endpoints
paths:
  /v2/tsa/jobs/cancel/{job_id}:
    post:
      tags:
        - Analyze
      summary: >-
        Cancel the job based on the job ID and update the job status in the
        database
      operationId: post_tsa_job_cancel
      parameters:
        - name: job_id
          in: path
          required: true
          description: The identifier of the TSA job
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Job_Cancel_Request'
      responses:
        '200':
          description: >-
            "Success. A message will appear to confirm cancellation. {"status":
            "cancelling", "message": "Job cancellation started"}
        '400':
          description: >-
            Bad Request. The job couldn't be canceled. Check the job ID is
            correct and try again. The server cannot or will not process the
            request due to something that is perceived to be a client error
            (e.g., malformed request syntax, invalid request message framing, or
            deceptive request routing).
components:
  schemas:
    Job_Cancel_Request:
      properties:
        message:
          type: string
          description: Cancellation message/reason.
          example: This is sample cancellation message.
      type: object
  securitySchemes:
    apikey:
      type: apiKey
      in: header
      name: Authorization

````