Palbase Workspaces API · API
PUT
/workspaces/{id}/filesWrite 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 · requiredQuery
pathstring · requiredcurl
curl -X PUT "https://<your-ref>.palbase.studio/workspaces/<id>/files" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/octet-stream" \
--data-binary @fileResponses
200File written.
defaultAn error envelope.
Operation PutWorkspaceFile of workspaces's contract.