Optimizers

Update Optimizer

Replace the class source and/or its description. A script edit is live for every future run of a model that names the class. Renaming the class is refused while stored scripts still reference the old name.

patch/v1/optimizers/{optimizer}

Request

  • Base URL: https://api.ensemble.markets (the document declares no server; this is the origin it was published from)
  • URL: https://api.ensemble.markets/v1/optimizers/{optimizer}
  • Auth: HTTP bearer

Path parameters

optimizerstring required

Optimizer ID (optimizer_... or legacy o-...) or class name (MaxSharpeOpt)

Request body

scriptstring nullable

Replacement class source, re-validated and smoke-tested

descriptionstring nullable

Replacement one-line description

Response

Successful Response

idstring required

Optimizer ID (optimizer_... or legacy o-...)

namestring required

Python class name

descriptionstring required
source'prompt' | 'script' required
promptstring nullable
scriptstring required
hashstring required
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.