Aller au contenu principal

Files delegate - may the caller read or write the files of a sheet?

POST 

/internal/v1/attachments/authorize

Called by the files service when the permission it derives from the owner ARN (borrowing.sheet.read / borrowing.sheet.update) is denied. The caller principal token is forwarded in X-Atl-Principal (required). Owner: atl:borrowing:<site>:sheet/<id>.

  • read: same rule as GET /v1/borrowing/sheets/{id} (member borrower, creator, borrowing.sheet.read, read_all, approve).
  • write: the member borrower and the creator while the sheet is draft, pending_approval (checkout photos, signature), checked_out or partially_returned (return photos); otherwise borrowing.sheet.update.

Request​

Responses​

Allowed