> ## 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.

# Rename a trained model

> Update the display name associated with a Fastino training job.

`PATCH /v1/training-jobs/{job_id}/model-name`

Updates the model name on a training job.

## Request

<ParamField header="X-API-Key" type="string" required>
  Your Fastino API key.
</ParamField>

<ParamField path="job_id" type="string" required>
  Training-job UUID.
</ParamField>

<ParamField body="model_name" type="string" required>
  New model name. Length: 1–64 characters. Use letters, numbers, hyphens, or underscores.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH https://api.fastino.ai/v1/training-jobs/YOUR_TRAINING_JOB_ID/model-name \
    -H "X-API-Key: $FASTINO_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"model_name": "my-model-name"}'
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "message": "Model name updated",
    "job_id": "YOUR_TRAINING_JOB_ID",
    "model_name": "my-model-name"
  }
  ```
</ResponseExample>

Invalid names return `422`. An unknown or inaccessible job returns `404`.
