Delete an agent folder
curl --request DELETE \
--url https://guidinghand.ai/v1/agent_folders/{folder_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/agent_folders/{folder_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/agent_folders/{folder_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"object": "agent_folder",
"id": "<string>",
"name": "<string>",
"deleted": true,
"moved_to": "<string>",
"agents": 123,
"folders": 123
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}Agent folders
Delete an agent folder
Its agents and folders move up into its parent (or to the top), so no agent goes with it. A folder moved up whose name is taken there gets “ (2)”. Admins.
DELETE
/
v1
/
agent_folders
/
{folder_id}
Delete an agent folder
curl --request DELETE \
--url https://guidinghand.ai/v1/agent_folders/{folder_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/agent_folders/{folder_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/agent_folders/{folder_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"object": "agent_folder",
"id": "<string>",
"name": "<string>",
"deleted": true,
"moved_to": "<string>",
"agents": 123,
"folders": 123
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}Authorizations
An org API key (gh_live_…) from Settings → API keys in the console.