v2
latestOpenAPI 3.1.02026-08-05267431678.1 KBdeployments
Deploy a model to a project
Activate a model as the project's active model and record the swap.
Exactly one of training_job_id (a fine-tuned checkpoint) or base_model (a stock HuggingFace base model) must be supplied in the request body; this is enforced by the DeploymentCreate schema.
Args: project_id: ID of the project to update. request: Deployment target (training job or base model) and optional reason. auth: Authenticated user.
Returns: DeploymentResponse with the new history record.
Raises: 400: If the supplied base model is not in the catalog. 403: If the user does not have access to the project. 404: If the project or training job is not found.
post/projects/{project_id}/deployments
Path parameters
project_idstring uuid required
Request body
Response
Successful Response