Remove a resource from an agent
DELETE
/agents/{id}/resources/{documentId}
const url = 'https://api.somebodyai.co/api/v1/agents/example/resources/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
documentId
required
string
Responses
Section titled “Responses”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" ]}