---
title: "Batch handle access requests"
method: POST
path: "/api/models/{namespace}/{repo}/user-access-request/batch"
tags: ["models"]
---

# Batch handle access requests

`POST /api/models/{namespace}/{repo}/user-access-request/batch`

Accept, reject or reset to pending up to 100 access requests for a single gated repository in one call. The same `status` (and optional `rejectionReason`) is applied to every request in the list.

## Path parameters

- `namespace` string, required
- `repo` string, required

## Request body

- object
  - `status` 'accepted' | 'rejected' | 'pending', required
  - `rejectionReason` string
  - `requests` object[], required
    - `userId` string — Either userId or user must be provided
    - `user` string — Either userId or user must be provided

## Response `200`

Per-request outcomes, in the same order as the input requests array.

- object[]
  - `userId` string
  - `user` string
  - `ok` boolean, required
  - `error` 'user_not_found' | 'request_not_found'

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/6ab9f7d9cfb5/schema)
