palbaseDocs

Palbase Workspaces API · API

PUT/workspaces/{id}/files

Write a workspace file

Writes a single file into the workspace and broadcasts the new head to all synced machines.

Called by your server, with the project's secret key.

Path

idstring · required

Query

pathstring · required
curl
curl -X PUT "https://<your-ref>.palbase.studio/workspaces/<id>/files" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/octet-stream" \
  --data-binary @file

Responses

200File written.

defaultAn error envelope.

Operation PutWorkspaceFile of workspaces's contract.