v1

latestOpenAPI 3.1.02026-07-22100167210.7 KB
Environments

Create Environment File

Adds a new file to the environment. Maximum content size is 64 KB (65,536 bytes). The path is validated against allowed locations (typically under ~/).

post/v1/environments/{environmentId}/files

Path parameters

environmentIdstring required

Environment UUID, or the literal string global.

Request body

namestring required
pathstring required

Destination path inside the workspace, e.g. ~/AGENTS.md

contentstring required

File contents (≤ 64 KB)

Response

File created