Save RFC trial progress and result
POST
/tasks/benchmark-result/{id}The agent submits the result of one trial before releasing the native snapshot. The controller assigns the Run ID; resubmitting the same result is idempotent, and changing a saved result is not allowed.
Contract
Parameter | Value |
|---|---|
| Section | tasks |
| Authentication | AgentAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
2 parameters
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| id | path | yes | integer | Task ID |
| request | body | yes | object | RFC trial progress or result |
{ "current": [ 0 ], "error": "<string>", "hostname": "<string>", "plan": [ 0 ], "runId": "<string>", "status": "<string>", "summary": [ 0 ], "trial": [ 0 ] }
Responses
6 responses
Status | Description | Type |
|---|---|---|
200 | Result saved | object |
400 | Invalid data | object |
401 | Agent is not authorized | object |
403 | Agent is not assigned to the task | object |
404 | Task not found | object |
409 | Task is not active or the result conflicts with the saved one | object |
{}{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }