Skip to main content
POST
/
v1
/
document-folders
/
{folderId}
/
detach
Detach a folder from an agent or assistant
curl --request POST \
  --url https://api.devic.ai/v1/document-folders/{folderId}/detach \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "targetId": "<string>"
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Use JWT token for authentication

Path Parameters

folderId
string
required

Folder ID

Body

application/json
targetType
enum<string>
required

Type of entity to attach the document to

Available options:
agent,
assistant
targetId
string
required

ID of the agent or assistant

Response

Folder detached successfully

success
boolean

Whether the operation succeeded