Skip to main content
POST
Create Environment File

Authorizations

Authorization
string
header
required

API key authentication. Obtain your API key from the Replicas dashboard under Organization → Settings → API Keys. User-session JWTs are not accepted by /v1/replica endpoints.

Path Parameters

environmentId
string
required

Environment UUID, or the literal string global.

Body

application/json

Request body for creating an environment file. Maximum content size is 64 KB (65,536 bytes).

name
string
required
path
string
required

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

content
string
required

File contents (≤ 64 KB)

Response

File created

environment_file
object
required

A file dropped into the workspace at the configured path when the workspace is provisioned.