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

# Batch 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'

## Changes

- **2026-09-11** `c97a15994a26` — 1 warning
  - changed the pattern of the request property `requests/items/userId` from `^[0-9a-f]{24}$` to `^[0-9a-fA-F]{24}$`
- **2026-09-08** `bd17546f47b8` — 2 breaking
  - the `status` request property type changed from no type to `string`
  - the `items/error` response's property type changed from no type to `string` for status `200`
- **2026-08-06** `266c8641e73a` — 1 info
  - added the new `pending` enum value to the request property `status`

[Change history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/models/:namespace/:repo/user-access-request/batch/post.md)

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/68387ea03846?raw)
