Skip to content

Remove a resource from an agent

DELETE
/agents/{id}/resources/{documentId}
curl --request DELETE \
--url https://api.somebodyai.co/api/v1/agents/example/resources/example \
--header 'Authorization: Bearer <token>'

Moves the attachment to the trash, where a revision restore can bring it back. The document is deleted once no attachment, trashed attachment or retained revision names it.

id
required
string
/^[a-fA-F0-9]{24}$/
documentId
required
string
/^[a-fA-F0-9]{24}$/

Removed

Media typeapplication/json
object
success
required
boolean
Example
{
"success": true
}

Unauthorized - missing or invalid auth

Media typeapplication/json
object
error
required
string
details
Array<string>
Example
{
"error": "Resource not found",
"details": [
"Field is required"
]
}

Resource not found

Media typeapplication/json
object
error
required
string
details
Array<string>
Example
{
"error": "Resource not found",
"details": [
"Field is required"
]
}