v36

latestOpenAPI 3.1.0raw.githubusercontent.com2025-10-091882241.2 MB
agents

Close File

Closes a specific file for a given agent.

This endpoint marks a specific file as closed in the agent's file state. The file will be removed from the agent's working memory view.

patch/v1/agents/{agent_id}/files/{file_id}/close

Path parameters

agent_idstring required
file_idstring required

Response

Successful Response

{"stackTrail":"paths:/v1/agents/{agent_id}/files/{file_id}/close:patch:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}