palbaseDocs

Palbase Workspaces API · API

POST/workspaces/{id}/locks

Acquire or renew an advisory lock

Acquires or renews a TTL-based advisory lock on the workspace or a path prefix.

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

Path

idstring · required

Request body

scopestring · optional
owner_idstring · required
ttl_secondsinteger · optional
curl
curl -X POST "https://<your-ref>.palbase.studio/workspaces/<id>/locks" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"owner_id":"string"}'

Responses

200Lock acquired.

409Scope is currently locked by another owner.

defaultAn error envelope.

Operation AcquireWorkspaceLock of workspaces's contract.