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.
POST
header
AuthorizationBearer <JWT>Short-lived worker runtime JWT minted by the platform. Claims bind the worker, project, organization, registration, and scopes.
id*stringapplication/json- body
filePaths*array<string>Items
1 <= itemsreason?stringworkerId?stringReservation result.
application/json- response
reserved?array<string>conflicts?array<>curl -X POST 'https://app.rensei.ai/api/sessions/string/files/reserve' \ -H 'Content-Type: application/json' \ -d '{ "filePaths": [ "string" ]}'Example Response
{ "reserved": [ "string" ], "conflicts": [ {} ]}