Unmount one file resource from the session (BMA extension)
curl --request DELETE \
--url https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/resources/{resource_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/resources/{resource_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/resources/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/resources/{resource_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"type": "session_resource_deleted"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}API Reference
Unmount one file resource from the session (BMA extension)
Removes the mount and releases the session instance. The project file itself is kept; other sessions that mounted it keep their instances.
DELETE
/
v1
/
sessions
/
{session_id}
/
resources
/
{resource_id}
Unmount one file resource from the session (BMA extension)
curl --request DELETE \
--url https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/resources/{resource_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/resources/{resource_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/resources/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/resources/{resource_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"type": "session_resource_deleted"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}Authorizations
apiKeybearer
BMA organization API key.
Headers
Project to operate in. Required when the key can read more than one
project and the deployment has no default project.
anthropic-workspace-id is accepted as an alias.
Path Parameters
Minimum string length:
1The id of the mounted resource.
Pattern:
^sesrsc_[a-z2-7]{26}$