Sessions
Cancel session
Cancel a running session.
DELETE
/
api
/
sessions
/
{id}
cURL
curl -X DELETE http://localhost:18080/api/sessions/sess-123const options = {method: 'DELETE'};
fetch('http://localhost:18080/api/sessions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:18080/api/sessions/{id}"
response = requests.delete(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:18080/api/sessions/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "<string>",
"workspaceId": "<string>"
}⌘I
cURL
curl -X DELETE http://localhost:18080/api/sessions/sess-123const options = {method: 'DELETE'};
fetch('http://localhost:18080/api/sessions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:18080/api/sessions/{id}"
response = requests.delete(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:18080/api/sessions/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "<string>",
"workspaceId": "<string>"
}
