Agents
Write an agent environment file
Changed onCopies inline bytes or a Files API file into a connected execution environment, replacing an existing regular file at the same path. Upload between turns and wait for success before starting the next turn. See environment files.
post/agents/environments/{environment_id}/files
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/agents/environments/{environment_id}/files
- AuthHTTP bearer
Path parameters
environment_idstring required
The ID of the environment.
Request body
Response
The written live environment file.
Changes
- info
added the non-success response with the status
- info
- info
endpoint added
- info