models

Batch access requests

Changed on

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.

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

Request

  • Base URL: https://huggingface.co
  • URL: https://huggingface.co/api/models/{namespace}/{repo}/user-access-request/batch
  • Auth: HTTP bearer

Path parameters

namespacestring required
repostring required

Request body

status'accepted' | 'rejected' | 'pending' | 'reset' required
rejectionReasonstring
resetReasonstring

Response

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

requestIdstring
userIdstring
userstring
okboolean required
error'user_not_found' | 'request_not_found'

Changes

    • breaking

      the / request property type changed from object to no type

    • warning

      removed the request property //

    • warning

      removed the request property //

    • info

      added subschema #1 subschema #2 subschema #3 to the / request property oneOf list

    • info

      added the optional property / to the response with the status

    • info

      added the new optional request property

    • info

      added the new reset enum value to the request property