Skip to main content
Send a new name or archive status. Returns the updated training without changing its configuration.

Signature

Method signature on client.trainings:

Parameters

string
required
Training draft ID with prefix trg..
string
New name for the training; omit to keep the current name.
false | true
Whether to archive the training; omit to keep its current archive state.

Returns

Promise<Training> A project-owned mutable Training draft. The output Model is bound on the first Training Run.
TrainingId
required
Training draft ID with prefix trg..
ProjectId
required
Project ID with prefix pp..
ModelId | null
required
Output model ID with prefix mdl., or null before the first training run.
string
required
Name of the training draft.
TrainingConfiguration
required
A normalized method-specific Training draft.
string | null
required
Time the training was archived, as an ISO 8601 timestamp, or null while it is active.
string
required
Time the training was created, as an ISO 8601 timestamp.
string
required
Time the training was last updated, as an ISO 8601 timestamp.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: PATCH /trainings/{trainingId}.