workspaces.files.write
Write a file into the hosted sandbox (≤1 MiB; scratch only — store state flows through mozaik push/proposals).
- method + path:
PUT /v1/workspaces/{ws}/file - TR label: Sandbox dosyası yazıldı
- auth: authenticated · scope gates: any of
admin,sandbox:use— “Sandbox kullanımı için sandbox:use yetkisi gerekli” - agentPolicy:
workspace— writes confined to the caller's own draft workspace or staging — every token kind executes it directly. - effects:
provider,db - idempotency: server — the platform derives the key
- wraps: — (no command inside)
Machine-readable body schema: /schemas/routes/workspaces.files.write.json.
Body
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"content": {
"type": "string",
"maxLength": 1398101
},
"encoding": {
"type": "string",
"enum": [
"utf8",
"base64"
]
}
},
"required": [
"path",
"content"
],
"additionalProperties": false
}Generated from the live platform registries at build time — reference pages cannot go stale. Markdown variant: /reference/routes/workspaces.files.write.md