Leave a library
End the caller’s own non-owner membership, even when library content is unavailable. Repeating departure returns the existing inactive state without changing an owner-removal cutoff. An owner cannot leave; retrying unchanged returns 409.
Authorizations
First-party Gumnut app session (Clerk session JWT). Only the Gumnut web and mobile apps can obtain one — API keys and OAuth tokens cannot manage credentials or library sharing, so these operations are not callable with the credentials this API otherwise accepts.
Path Parameters
Library identifier.
Response
Successful Response
Stable membership record identifier.
Library this membership belongs to.
Member account summary.
Current or last assigned role.
viewer, collaborator A member's library access state.
active grants the assigned role. left means the member departed; removed means the owner revoked access. left and removed grant no access.
active, left, removed Most recent admission instant.
Most recent departure or removal instant, or null while active.
Retained owner-removal cutoff for readmission, or null.
When this record was created.
When this record last changed.