POST /api/eureka/notebooks/executions/:jobId/strategy-components
Account required · HTTP API reference
All endpoints · Authentication and retries · Download OpenAPI
- Requires a signed-in account and permission to access this resource. Use identifiers returned by your own account's earlier requests.
- The manifest must refer to the completed execution and its actual cell/source hash. Registering a component does not execute it.
- Protected writes require an allowed Origin, the CSRF cookie and matching X-CSRF-Token header.
Request
| Parameter | Location | Type and requirement |
|---|---|---|
jobId | path | string · required |
Origin | header | string · required An origin allowed by this deployment. |
X-CSRF-Token | header | string · required Must match the CSRF cookie issued to this browser. |
Body · application/json
schema required · "weavers.strategy_component.v1"version required · 1componentType required · "stage_a" | "stage_b"componentKey required · stringlabel required · stringsourceKind required · "notebook_component"notebookKey required · stringexecutionJobId required · null | stringView executionJobId model
Variant 1: null
null
Variant 2: string
string
cellId required · stringsourceSha256 required · stringcreatedAt required · stringinterface required · objectView interface model
Variant 1: object
kind required · "stage_a"input required · "weavers.ohlcv_panel.v1"output required · "weavers.stage_a_signal_frame.v1"timestampColumn required · stringsymbolColumn required · stringsignalColumn required · stringprobabilityColumn optional · null | stringView probabilityColumn model
Variant 1: null
null
Variant 2: string
string
horizonBars optional · null | numberView horizonBars model
Variant 1: null
null
Variant 2: number
number
Variant 2: object
kind required · "stage_b"input required · "weavers.stage_a_signal_frame.v1"output required · "weavers.execution_policy.v1"timestampColumn required · stringsymbolColumn required · stringsignalColumn required · stringpolicyConfigPath optional · null | stringView policyConfigPath model
Variant 1: null
null
Variant 2: string
string
requiredColumns optional · array of stringView requiredColumns model
Array items:
string
files required · array of objectView files model
Array items:
role required · "source" | "predictor" | "policy" | "metrics" | "plot" | "manifest" | "model" | "other"path required · stringmediaType optional · stringbytes optional · numbermetrics optional · objectView metrics model
Additional fields: number.
notes optional · stringExample
Examples use fictional data. Replace identifiers with resources you can access. For account requests, cookies.txt must contain your own session; set CSRF_TOKEN to the matching CSRF cookie value where required.
{
"schema": "weavers.strategy_component.v1",
"version": 1,
"componentType": "stage_a",
"componentKey": "example-signal",
"label": "Example signal",
"sourceKind": "notebook_component",
"notebookKey": "strategy-11111111-1111-4111-8111-111111111111",
"executionJobId": "notebook-example",
"cellId": "example-cell",
"sourceSha256": "51a5983fa1333c582c710ed6131d2bc0d641866150cf23001603a4ae0685b173",
"createdAt": "2025-01-01T00:00:00.000Z",
"interface": {
"kind": "stage_a",
"input": "weavers.ohlcv_panel.v1",
"output": "weavers.stage_a_signal_frame.v1",
"timestampColumn": "timestamp",
"symbolColumn": "symbol",
"signalColumn": "signal"
},
"files": [
{
"role": "source",
"path": "signal.py",
"mediaType": "text/x-python",
"bytes": 26
}
]
}curl --include \
--request POST \
'https://api.weavers.app/api/eureka/notebooks/executions/1/strategy-components' \
--cookie cookies.txt --cookie-jar cookies.txt \
--header 'Origin: https://weavers.app' \
--header "X-CSRF-Token: ${CSRF_TOKEN}" \
--header 'Content-Type: application/json' \
--data-binary @request.jsonResponses
202 · Work accepted. Poll the returned job or request identifier.
application/json
{
"component": {
"componentType": "stage_a",
"componentKey": "example",
"label": "Example research",
"sourceKind": "weavers_preset",
"trustStatus": "preset",
"lifecycleStatus": "rejected",
"executionJobId": null,
"sourceSha256": null,
"artifact": null,
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
}View response model
component required · objectView component model
componentType required · "stage_a" | "stage_b"componentKey required · stringlabel required · stringmethod optional · objectView method model
strategyLabel required · stringpurpose required · stringtask required · stringalgorithm required · null | objectView algorithm model
Variant 1: null
null
Variant 2: object
id required · stringlabel required · stringfamily required · stringAdditional fields: JSON values.
componentVersion required · null | stringView componentVersion model
Variant 1: null
null
Variant 2: string
string
Additional fields: JSON values.
sourceKind required · "weavers_preset" | "notebook_component" | "uploaded_component"trustStatus required · "preset" | "unvalidated" | "optimisation_validated"lifecycleStatus required · "rejected" | "candidate" | "promoted"executionJobId required · null | stringView executionJobId model
Variant 1: null
null
Variant 2: string
string
sourceSha256 required · null | stringView sourceSha256 model
Variant 1: null
null
Variant 2: string
string
artifact required · null | objectView artifact model
Variant 1: null
null
Variant 2: object
schema required · "weavers.strategy_component.v1"version required · 1componentType required · "stage_a" | "stage_b"componentKey required · stringlabel required · stringmethod optional · objectView method model
strategyLabel required · stringpurpose required · stringtask required · stringalgorithm required · null | objectView algorithm model
Variant 1: null
null
Variant 2: object
id required · stringlabel required · stringfamily required · stringAdditional fields: JSON values.
componentVersion required · null | stringView componentVersion model
Variant 1: null
null
Variant 2: string
string
Additional fields: JSON values.
sourceKind required · "notebook_component"notebookKey required · stringexecutionJobId required · null | stringView executionJobId model
Variant 1: null
null
Variant 2: string
string
cellId required · stringcellIds optional · array of stringView cellIds model
Array items:
string
sourceSha256 required · stringcreatedAt required · stringinterface required · objectView interface model
Variant 1: object
kind required · "stage_a"input required · "weavers.ohlcv_panel.v1"output required · "weavers.stage_a_signal_frame.v1"timestampColumn required · stringsymbolColumn required · stringsignalColumn required · stringprobabilityColumn optional · null | stringView probabilityColumn model
Variant 1: null
null
Variant 2: string
string
horizonBars optional · null | numberView horizonBars model
Variant 1: null
null
Variant 2: number
number
Additional fields: JSON values.
Variant 2: object
kind required · "stage_b"input required · "weavers.stage_a_signal_frame.v1"output required · "weavers.execution_policy.v1"timestampColumn required · stringsymbolColumn required · stringsignalColumn required · stringpolicyConfigPath optional · null | stringView policyConfigPath model
Variant 1: null
null
Variant 2: string
string
requiredColumns optional · array of stringView requiredColumns model
Array items:
string
Additional fields: JSON values.
runtime optional · objectView runtime model
kind required · "python_source"entrypoint required · "weavers_stage_a" | "weavers_stage_b"source required · stringsourceSha256 required · stringselectedCellIds required · array of stringView selectedCellIds model
Array items:
string
Additional fields: JSON values.
files required · array of objectView files model
Array items:
role required · "source" | "predictor" | "policy" | "metrics" | "plot" | "manifest" | "model" | "other"path required · stringmediaType optional · stringbytes optional · numberAdditional fields: JSON values.
metrics optional · objectView metrics model
Additional fields: number.
notes optional · stringAdditional fields: JSON values.
createdAt required · stringupdatedAt required · stringAdditional fields: JSON values.
Additional fields: JSON values.
400 · Invalid request.
application/json
{}View response model
Error envelopes can include resource-specific details. Check the status before reading these fields.
error optional · stringcode optional · stringmessage optional · stringAdditional fields: JSON values.
401 · Authentication is missing or invalid.
application/json
{}View response model
Error envelopes can include resource-specific details. Check the status before reading these fields.
error optional · stringcode optional · stringmessage optional · stringAdditional fields: JSON values.
403 · Permission, origin or CSRF check failed.
application/json
{}View response model
Error envelopes can include resource-specific details. Check the status before reading these fields.
error optional · stringcode optional · stringmessage optional · stringAdditional fields: JSON values.
429 · Rate limit reached; honor Retry-After when supplied.
application/json
{}View response model
Error envelopes can include resource-specific details. Check the status before reading these fields.
error optional · stringcode optional · stringmessage optional · stringAdditional fields: JSON values.
500 · Server failure.
application/json
{}View response model
Error envelopes can include resource-specific details. Check the status before reading these fields.
error optional · stringcode optional · stringmessage optional · stringAdditional fields: JSON values.
default · Operation-specific error. Inspect error/code before deciding whether to retry.
application/json
{
"error": "example",
"code": "example"
}View response model
error required · stringcode required · stringAdditional fields: JSON values.