Close a session
POST
/api/v1/sessions/close
const url = 'https://deck.example.com/api/v1/sessions/close';const options = { method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"session":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://deck.example.com/api/v1/sessions/close \ --header 'Content-Type: application/json' \ --cookie qd_auth=<qd_auth> \ --data '{ "session": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”quietdeck session resume <session> and the registry’s Resume and Close: a session by address (tab@machine,
a tab name, or a session ID).
Media typeapplication/json
quietdeck session resume <session> and the registry’s Resume and Close: a session by address (tab@machine,
a tab name, or a session ID).
object
session
required
string
Example generated
{ "session": "example"}Responses
Section titled “Responses”Media typeapplication/json
Example generated
exampledefault
Section titled “default”An error, with its message.
Media typeapplication/json
Every error the REST API returns, with an HTTP status.
object
error
required
string
Example generated
{ "error": "example"}