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

# Batch access requests

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

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

## Path parameters

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

## Request body

- object
  - `status` 'accepted' | 'rejected' | 'pending' | 'reset', required
  - `rejectionReason` string
  - `resetReason` 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-18** `74f2b0d17636` — 2 info
  - added the new optional request property `resetReason`
  - added the new `reset` enum value to the request property `status`
- **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/datasets/: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/b88d4a4da99f?raw)
