Skip to main content
POST
/
v1
/
repo
/
{repo_name}
/
bakes
/
batch
Batch Create Bakes
curl --request POST \
  --url http://localhost:8080/v1/repo/{repo_name}/bakes/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bakes": [
    {
      "bake_name": "bake_v1",
      "overrides": {
        "epochs": 5,
        "micro_batch_size": 16
      },
      "template": "default"
    },
    {
      "bake_name": "bake_v2",
      "overrides": {
        "optimizer": {
          "learning_rate": 0.001
        }
      },
      "template": "bake_v1"
    }
  ]
}
'
{
  "created": [
    "coding_bake_v1",
    "math_bake_v1"
  ],
  "failed": {
    "bad_config_bake": "Invalid dataset reference: target 'missing_target' not found",
    "invalid_bake": "Template 'nonexistent_bake' not found"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-User-Id
string | null

User ID override via header (requires master API key)

Path Parameters

repo_name
string
required

Query Parameters

user_id
string | null

User ID override (requires master API key)

Body

application/json

Batch bake creation

bakes
BakeConfigWithName · object[]
required

List of bakes to create/update

Response

Successful Response

Batch bake response

created
string[]
required

List of successfully created items

failed
Failed · object
required

Dictionary of failed items with error messages