Palbase Workspaces API · API
POST
/workspaces/{id}/locksAcquire 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 · requiredRequest body
scopestring · optionalowner_idstring · requiredttl_secondsinteger · optionalcurl
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.