Write a file

PUT/v1/sessions/{id}/files

Write raw bytes, creating missing parent directories inside the running session. The maximum request body is 10 MiB. A running managed command or provided-agent request blocks file writes.

Authorization

bearerAuth
AuthorizationBearer <token>

Use the owner-scoped product API key provided by the service operator.

In: header

Path Parameters

id*string

Session ID returned by open or list.

Formatuuid

Query Parameters

path*string

A file path relative to /workspace, or an absolute path inside it.

Lengthlength <= 4096

Request Body

application/octet-stream

Response Body

application/json

Request
curl -X PUT "https://assemble-vms-api.fly.dev/v1/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/files?path=string" \  -H "Authorization: Bearer ${ASSEMBLE_API_KEY}"
Response
Empty