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

Request

  • Base URL
    https://api.tryreplicas.com
  • URL
    https://api.tryreplicas.com/v1/environments/{environmentId}/files
  • Auth
    HTTP bearer

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

Changes

No recorded changes to this operation across all 1 revision of this API.