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

> ## Agent Instructions
> Use https://docs.fastino.ai/openapi.json as the source of truth for customer-facing Fastino API routes. Only call operations present in that specification. Do not infer or call undocumented routes. Direct Fastino API integrations use https://api.fastino.ai, /v1 routes, and FASTINO_API_KEY.

# Arrêter un job d'entraînement

> Arrêtez un job d'entraînement Fastino en cours en conservant les checkpoints existants.

Arrête un job en cours et conserve les checkpoints créés avant l'arrêt.

## Requête

<ParamField header="X-API-Key" type="string" required>
  Votre clé API Fastino.
</ParamField>

<ParamField path="job_id" type="string" required>
  UUID du job d'entraînement.
</ParamField>

Le corps JSON est optionnel.

<ParamField body="reason" type="string">
  Raison pour laquelle le job a été arrêté.
</ParamField>

<ParamField body="scores" type="object">
  Métriques numériques utilisées pour prendre la décision d'arrêt.
</ParamField>

<ParamField body="checkpoint" type="string">
  Chemin ou pas du checkpoint associé à l'arrêt.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.fastino.ai/v1/training-jobs/YOUR_TRAINING_JOB_ID/stop \
    -H "X-API-Key: $FASTINO_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"reason": "Validation loss stopped improving"}'
  ```
</RequestExample>

## Réponse

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "message": "Training job stopped",
    "job_id": "YOUR_TRAINING_JOB_ID",
    "status": "stopped"
  }
  ```
</ResponseExample>

Un job inconnu ou un job qui ne peut pas être arrêté renvoie une erreur `4xx` spécifique à la requête.
