Return control and release held input
Preview. This operation may change in any release.
Experimental local computer. Only the account owner may use this route. X-Client-Id identifies the admitted app window; it is required on reads and actions. Requests never accept guest endpoints, credentials or host paths. Control and input are bound to the app window and current generation. With login enabled, the existing login cookie is required. Errors expose a safe code, never private guest details. Stop can return cleanup-uncertain; that response does not confirm physical shutdown.
The sign-in cookie a browser gets when a person signs in to DorkOS. An installed DorkOS on port 4242 names it __Secure-better-auth.session_token. On any other port the prefix carries a suffix for its data folder (better-auth-<hash>), and a development server leaves off __Secure-. From this computer, an operation that takes the sign-in cookie or a personal API key needs neither while "Ask for a password on this computer too" is off, which is how DorkOS installs (dorkos auth enable turns it on). A request from another device needs one, with one exception for now: a browser reaching a Docker container through its published port, while the container runs with DORKOS_ALLOW_INSECURE_BIND and has no owner account yet.
In: cookie
Header Parameters
^[A-Za-z0-9_-]+$1 <= length <= 128Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X DELETE "https://example.com/api/computers/control" \ -H "X-Client-Id: string" \ -H "Content-Type: application/json" \ -d '{ "leaseId": "string" }'{ "ok": true}