Unlink workspace
import requests
url = "https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/workspaces/{workspace_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://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/workspaces/{workspace_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/workspaces/{workspace_id} \
--header 'X-API-KEY: <api-key>'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Unlink workspace
Unlinks a workspace from the agent session context.
DELETE
/
agent-sessions
/
{session_id}
/
workspaces
/
{workspace_id}
Unlink workspace
import requests
url = "https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/workspaces/{workspace_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://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/workspaces/{workspace_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/workspaces/{workspace_id} \
--header 'X-API-KEY: <api-key>'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

