API ReferenceWorker Protocol
Reserve file lock for a session
Reserves the listed file paths against the session's org-scoped repo ID to prevent concurrent modification by other sessions.
AuthorizationBearer <token>
Short-lived worker runtime JWT minted by the platform. Claims bind the worker, project, organization, registration, and scopes.
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/sessions/string/files/reserve" \ -H "Content-Type: application/json" \ -d '{ "filePaths": [ "string" ] }'{
"reserved": [
"string"
],
"conflicts": [
{}
]
}{
"error": "Session not found"
}{
"error": "Session not found"
}{
"error": "Session not found"
}