Skip to main content
POST
Requires version 1.1.12 or later of the Archetype platform.

Overview

This endpoint promotes one trial of an optimization to a blueprint of its own. An optimization does not publish a blueprint per trial — a run of hundreds of trials would bury your catalog, and most trials are never wanted. This endpoint materializes the one you pick: the searched blueprint with that trial’s parameter values, model choices, and trained artifacts applied, so the result is a blueprint you can evaluate, package, or use as the base of another optimization by its returned blueprint_id. The new blueprint belongs to your organization and records where it came from in its source field — the blueprint that was searched, the overrides applied, and the trial that produced them. Only a completed trial can be promoted; attempting to promote a trial whose status has any other value will result in an HTTP 409 error. A trial that met none of the run’s constraints is still promotable despite being classified as infeasible — the choice of which trade-off to ship is yours. Every field of the body is optional, so {} is a complete request.

Request

string
required
Parent optimization opt_ id.
string
required
Trial otr_ id to promote.
string
Key to publish the promoted blueprint under. Defaults to the searched blueprint’s key suffixed with the trial’s id, which is unique per trial; supply one to choose a friendlier handle. Rejected with 409 when your organization already has an active blueprint under this key.
If you don’t specify a blueprint_key, a key is generated by appending the trial’s ID to the end of the searched blueprint’s key. Promoting the same trial twice in this manner will respond with a 409 error rather than creating a duplicate.
string
Name for the promoted blueprint. Defaults to the searched blueprint’s. Must not be blank when supplied.
string
Description for the promoted blueprint. Defaults to the searched blueprint’s.

Response

Returns 201 Created with the promoted blueprint, in the shape Get Blueprint returns.
string
required
TypeID-encoded blueprint identifier (blp_ prefix) of the new blueprint.
Use this blueprint ID as the blueprint_id for a new eval, another optimization, or to create a new bundle using Create Bundle.
string
required
The key the promoted blueprint was published under.
string
required
Name of the blueprint.
string
required
Description of the blueprint.
object
required
The blueprint document: the searched blueprint with the trial’s parameter values, model choices, and trained artifacts applied.
boolean
required
false — a promoted blueprint belongs to your organization, not the platform gallery.
boolean
required
True for the current version of the key.
object
required
Where this blueprint came from: the blueprint that was searched, the overrides applied, and the trial that produced them.
string
The YAML rendering of the blueprint, when one is included.
string
required
Creation timestamp (date-time).

Source object (source)

string
required
The blueprint this one was derived from — the one the optimization searched.
object
required
Parameter value overrides applied on top of that blueprint’s own.
object
required
Model slot overrides applied on top of that blueprint’s own.
object
Artifact locations applied on top of that blueprint’s own, keyed by artifact name.
object
required
What produced this blueprint.
  • id (string, required) — the producer itself: the otr_ id of the promoted trial.
  • parent_id (string, required) — the run it belonged to: the opt_ id of the optimization.
  • name (string) — the human label of the enclosing run, when one was given to it.