---
title: "Request a library filter change"
method: POST
path: "/v2/teamspaces/{teamspaceId}/library-requests"
tags: ["Teamspace Admin"]
---

# Request a library filter change

`POST /v2/teamspaces/{teamspaceId}/library-requests`

## Request

- Base URL: `https://context7.com/api`
- URL: `https://context7.com/api/v2/teamspaces/{teamspaceId}/library-requests`
- Auth: HTTP bearer

Any member can ask the owners and admins to allow, block or except a library. A repeated request returns the existing one.

## Request body

- object
  - `libraryIdentifier` string, required: A library id starting with `/` (`/org/repo`, `/org`), or a root domain (`stripe.com`).
  - `requestType` 'allow' | 'block' | 'unallow' | 'unblock' | 'except' | 'unexcept', required: `allow`/`unallow` edit the allowed list (select mode), `block`/`unblock` the blocked list and `except`/`unexcept` the exceptions list (quality mode).

## Response `201`

Request created (or the existing one)

- object
  - `data` TeamspaceLibraryRequest
    - `id` string, required: `{requestType}:{libraryIdentifier}`.
    - `libraryIdentifier` string, required: A library id starting with `/` (`/org/repo`, `/org`), or a root domain (`stripe.com`).
    - `requestType` 'allow' | 'block' | 'unallow' | 'unblock' | 'except' | 'unexcept', required: `allow`/`unallow` edit the allowed list (select mode), `block`/`unblock` the blocked list and `except`/`unexcept` the exceptions list (quality mode).
    - `requestedByEmail` string
    - `createdAt` string, date-time, required

## Other responses

- `400`: Bad Request - Invalid input parameters
- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden - Insufficient permissions or plan restrictions
- `500`: Internal Server Error

## Changes

- **2026-10-22** `e17589fd8767`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/context7/apis/context7-public-api/changes/v2/teamspaces/:teamspaceId/library-requests/post.md)

---

[API](https://skmtc.dev/context7/apis/context7-public-api.md) - [All operations](https://skmtc.dev/context7/apis/context7-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/context7/apis/context7-public-api/revisions/945f7834fa8c?raw)
