curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123"
}'
curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123",
"task_config": {
"id": "task-002",
"instruction": "New task instructions",
"config": []
}
}'
{
"status": "accepted",
"message": "Environment reset started",
"vm_id": "vm-abc123",
"task_id": "uuid-string",
"status_url": "/task_status/uuid-string"
}
Control Plane
Reset Environment
Reset the desktop environment to initial state
POST
/
reset
curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123"
}'
curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123",
"task_config": {
"id": "task-002",
"instruction": "New task instructions",
"config": []
}
}'
{
"status": "accepted",
"message": "Environment reset started",
"vm_id": "vm-abc123",
"task_id": "uuid-string",
"status_url": "/task_status/uuid-string"
}
Resets the desktop environment to its initial state. Runs as a background task. Optionally accepts a new task configuration to initialize after reset.
Request Body
Response
curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123"
}'
curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123",
"task_config": {
"id": "task-002",
"instruction": "New task instructions",
"config": []
}
}'
{
"status": "accepted",
"message": "Environment reset started",
"vm_id": "vm-abc123",
"task_id": "uuid-string",
"status_url": "/task_status/uuid-string"
}