Skip to main content
POST
Write workspace files

Authorizations

Authorization
string
header
required

A gbr_pat_ access token. Scopes are recorded on the token when it is minted.

Headers

Idempotency-Key
string

Retrying with the same key replays the first answer instead of acting again.

Maximum string length: 255

Body

application/json
files
object[]
required

Files to write into the running workspace. Same shape as environment.files, which seeds one before the first turn.

Response

Write files into a running session's workspace.

What was written into the workspace. A path that was already there has been overwritten — that is what the request asked for.

object
string
required

Always list. Names the shape, so a value can be identified without knowing which call returned it.

Allowed value: "list"
data
object[]
required