---
title: "Add library members"
method: POST
path: "/libraries/{library_id}/members"
tags: ["Library"]
---

# Add library members

`POST /libraries/{library_id}/members`

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

## Path parameters

- `library_id` integer, required

## Query parameters

- `cookie_name` string, nullable

## Request body

- LibraryMemberBulkIn
  - `members` LibraryMemberIn[], required — Members to add to the library.
    - `user_id` integer, required — ID of the user to add as a member.
    - `role` string, required — Role to assign the member (e.g. owner or member).

## Response `201`

Successful Response

- LibraryMember[]
  - `created_at` string, date-time — UTC timestamp when the record was created.
  - `updated_at` string, date-time — UTC timestamp when the record was last updated.
  - `creator_user_id` integer, required — ID of the user who created the record.
  - `updater_user_id` integer, nullable — ID of the user who last updated the record, if any.
  - `library_id` integer, required — ID of the library.
  - `user_id` integer, required — ID of the member user.
  - `role` string, required — Role of the user within the library.

## Other responses

- `401` — Missing or invalid authentication.
- `403` — Caller is not an owner of this library.
- `404` — No library exists with the given id.
- `422` — Validation Error

---

[API](https://skmtc.net/neulandai/apis/neuland-ai-hub-api.md) · [All operations](https://skmtc.net/neulandai/apis/neuland-ai-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neulandai/neuland-ai-hub-api/revisions/b53e89b98c2b/schema)
