curl -sS -X POST "$BMA_BASE_URL/v1/desktop_sessions/<desktop_session_id>/renew_control" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID" \
-H "content-type: application/json" \
-d '{}'{
"type": "desktop_control_status",
"mode": "paused",
"epoch": 123,
"generation": 123,
"holder": "<string>",
"agent_state": "<string>",
"lease_id": "<string>",
"lease_expires_at": "2023-11-07T05:31:56Z",
"input_grant": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}Desktop sessions
Renew the control lease
POST
/
v1
/
desktop_sessions
/
{desktop_session_id}
/
renew_control
curl -sS -X POST "$BMA_BASE_URL/v1/desktop_sessions/<desktop_session_id>/renew_control" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID" \
-H "content-type: application/json" \
-d '{}'{
"type": "desktop_control_status",
"mode": "paused",
"epoch": 123,
"generation": 123,
"holder": "<string>",
"agent_state": "<string>",
"lease_id": "<string>",
"lease_expires_at": "2023-11-07T05:31:56Z",
"input_grant": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}헤더
본문
application/json
응답
Success.