v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-25173140700.7 KB
Library

Add library members

Add one or more members to the library; owner only.

post/libraries/{library_id}/members

Path parameters

library_idinteger required

Query parameters

cookie_namestring nullable

Request body

Example request

{
  "members": [
    {
      "user_id": 42,
      "role": "member"
    }
  ]
}

Response

Successful Response

created_atstring date-time

UTC timestamp when the record was created.

updated_atstring date-time

UTC timestamp when the record was last updated.

creator_user_idinteger required

ID of the user who created the record.

updater_user_idinteger nullable

ID of the user who last updated the record, if any.

library_idinteger required

ID of the library.

user_idinteger required

ID of the member user.

rolestring required

Role of the user within the library.

Example response

[
  {
    "created_at": "2026-01-15T10:30:00Z",
    "updated_at": "2026-01-16T08:00:00Z",
    "creator_user_id": 12,
    "updater_user_id": 12,
    "library_id": 1,
    "user_id": 1,
    "role": "OWNER"
  }
]