Agent reported task completion
POST
/tasks/agent-stop/{id}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 | Agent hostname and optional error |
{ "error": "<string>", "hostname": "<string>" }
Responses
3 responses
Status | Description | Type |
|---|---|---|
200 | Completion confirmed | object |
400 | Agent secret is missing or invalid, or the task ID or request body is invalid | object |
404 | Task not found | object |
{}{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }