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>"
}
'
{
  "ok": true,
  "staged": [
    {
      "path": "/prospects/leads.csv",
      "size": 1024,
      "result": {
        "path": "/prospects/leads.csv",
        "contentHash": "9f86d081884c7d65"
      }
    }
  ]
}

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

ok
boolean
required
staged
object[]
required