---
title: "Update Training Job Model Name"
method: PATCH
path: "/v1/training-jobs/{job_id}/model-name"
tags: ["training-jobs"]
---

# Update Training Job Model Name

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

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/training-jobs/{job_id}/model-name`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/training-jobs/:job_id/model-name/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update the model_name for a training job.

Thin wrapper: visibility scoping, validation, the UPDATE, and the
activity-event side effect all live in
:meth:`TrainingJobService.update_model_name`. The router only owns
HTTP concerns (status codes, request/response shaping) per
``brain/CLAUDE.md``.

## Path parameters

- `job_id` string, required

## Request body

- UpdateModelNameRequest: Request to update a training job's model name
  - `model_name` string, required: New model name (alphanumeric, hyphens, underscores)

## Response `200`

Successful Response

- UpdateModelNameResponse: Response model for updating model name
  - `success` boolean, required
  - `message` string, required
  - `job_id` string, required
  - `model_name` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/training-jobs/:job_id/model-name/patch.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) - [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/0e5e86e2bae5?raw)
