Remove an agent from a workspace
curl --request DELETE \
--url https://developer.creao.ai/v1/workspaces/{workspace_id}/agents/{agent_id} \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/workspaces/{workspace_id}/agents/{agent_id}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/workspaces/{workspace_id}/agents/{agent_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"unassigned": true
}Workspaces
Remove an agent from a workspace
Unassign a personal agent from a personal workspace.
DELETE
/
v1
/
workspaces
/
{workspace_id}
/
agents
/
{agent_id}
Remove an agent from a workspace
curl --request DELETE \
--url https://developer.creao.ai/v1/workspaces/{workspace_id}/agents/{agent_id} \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/workspaces/{workspace_id}/agents/{agent_id}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/workspaces/{workspace_id}/agents/{agent_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"unassigned": true
}Authorizations
bearerAuthapiKeyQuery
Account API key from Developer Console. Keys start with cr_sk_.
Response
Agent unassigned.
Available options:
true