Skip to main content
POST
/
files
/
stage
Stage files
curl --request POST \
  --url https://www.dench.com/api/v1/files/stage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "files": [
    {
      "path": "<string>",
      "text": "<string>",
      "base64": "<string>"
    }
  ],
  "path": "<string>",
  "text": "<string>",
  "base64": "<string>",
  "lastModifiedBy": "<string>"
}
'
{
  "error": {
    "message": "<string>",
    "type": "<string>",
    "code": "<string>",
    "details": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.

Body

application/json
files
object[]

Files to write. Each needs text or base64.

path
string

Single-file shortcut.

text
string
base64
string
lastModifiedBy
string

Response

Successful response