com.livtet.shelf.addItem

Upsert one shelf membership edge.

Details · procedure
Kindprocedure
Authorityshelf.livtet.com
Commit rev3n3l6ge3qfnv4
Indexed

Procedure

procedure · POST

Input

application/json

book

requiredref

The catalog edition to place on the shelf.

Optional position, notes and emoji for this book's place on the shelf.

shelf

requiredstring · at-uri

AT-URI of the shelf record.

Output

application/json

uri

requiredstring · at-uri

AT-URI of the shelfItem record.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Put a book on a shelf. The shelfItem rkey is <shelf rkey>-<edition rkey>, so the same pair always lands on the same record.

  • A book placed on one of a reader's shelves. Unlike bookStatus, which carries the reading status of an edition, a shelfItem is a plain membership edge: one record per (shelf, book) pair, so a book can sit on any number of custom shelves independently of its reading status. The rkey is `<shelf rkey>-<edition rkey>`, so the same pair always lands on the same record.

  • Put up to 100 books on one shelf in a single request; the shelfItems are written in parallel with Record.save_all.

  • Set the reading status of one edition. The bookStatus rkey is the edition rkey, so changing status replaces the previous record instead of adding a shelf membership.

  • Set the reading status of one edition. The bookStatus rkey is the edition rkey, so changing status replaces the previous record instead of adding a shelf membership.