# Cancel Finetune Job

`POST /v1/finetune/{job_id}/cancel`

Cancel a finetune job via the pipeline API.

- Base URL: `https://api.qualia.dev`
- Authentication: an API key in the `X-API-Key` header, or `Authorization: Bearer …`

## Parameters

- `job_id` (path, string (uuid), required)

## Responses

- `200` Finetune job cancelled successfully: `application/json` `FinetuneCancelResponse`
- `401` Invalid or missing API key: `application/json` `ErrorResponse`
- `404` Finetune job not found: `application/json` `ErrorResponse`
- `422` Validation error

## Schemas

```yaml
FinetuneCancelResponse:
  properties:
    job_id:
      type: string
      format: uuid
      description: Cancelled job ID
    cancelled:
      type: boolean
      description: Whether cancellation was successful
    message:
      description: Status message
      type:
        - string
        - "null"
  type: object
  required:
    - job_id
    - cancelled
  title: FinetuneCancelResponse
  description: Response after cancelling a finetune job.
ErrorResponse:
  properties:
    detail:
      type: string
      description: Error message describing what went wrong
  type: object
  required:
    - detail
  title: ErrorResponse
  description: Standard error response.
```
