Environment files

Create environment file

Content is limited to 64 KB. path must be under the home directory.

post/v1/environments/{environment_id}/files

Request

  • Base URL
    https://api.replicas.dev
  • URL
    https://api.replicas.dev/v1/environments/{environment_id}/files
  • Auth
    HTTP bearer

Path parameters

environment_idstring required

Environment UUID.

Headers

X-Replicas-Api-Version'2026-10-07'

API version. 2026-10-07 returns snake_case responses. See versioning.

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.