Skip to Content
propeller logo
API ReferenceFederated mlExperiments

Configure FL Experiment

Configure a new federated learning experiment

POST
/fl/experiments

Request Body

application/json
  1. body
experiment_id?string

Unique experiment identifier

round_id?string

Round identifier

model_ref?string

Reference to the model

participants?array<string>

List of participant proplet IDs

hyperparams?

Hyperparameters for the experiment

k_of_n?integer

Minimum updates required (k out of n participants)

timeout_s?integer

Timeout in seconds for each round

task_wasm_image?string

OCI image URL for the FL task Wasm binary

Response Body

Experiment configured

application/json
  1. response
experiment_id?string
round_id?string
status?string
Example Request
curl -X POST 'http://localhost:7070/fl/experiments' \  -H 'Content-Type: application/json' \  -d '{  "experiment_id": "exp-001",  "round_id": "round-1",  "model_ref": "model-v1",  "participants": [    "proplet-1",    "proplet-2"  ],  "hyperparams": {    "learning_rate": 0.01,    "epochs": 5  },  "k_of_n": 2,  "timeout_s": 300}'
Example Response201
{  "experiment_id": "string",  "round_id": "string",  "status": "string"}