You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hub/models-gated.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ You can automate the approval of access requests by using the API. You must pass
57
57
|`GET`|`/api/models/{repo_id}/user-access-request/pending`| Retrieve the list of pending requests. |`{"authorization": "Bearer $token"}`||
58
58
|`GET`|`/api/models/{repo_id}/user-access-request/accepted`| Retrieve the list of accepted requests. |`{"authorization": "Bearer $token"}`||
59
59
|`GET`|`/api/models/{repo_id}/user-access-request/rejected`| Retrieve the list of rejected requests. |`{"authorization": "Bearer $token"}`||
60
-
|`POST`|`/api/models/{repo_id}/user-access-request/handle`| Change the status of a given access request to `status`. |`{"authorization": "Bearer $token"}`|`{"status": "accepted"/"rejected"/"pending", "user": "username"}`|
60
+
|`POST`|`/api/models/{repo_id}/user-access-request/handle`| Change the status of a given access request to `status`. |`{"authorization": "Bearer $token"}`|`{"status": "accepted"/"rejected"/"pending", "user": "username", "rejectionReason": "optional rejection reason string (max 200 characters)"}`|
61
61
|`POST`|`/api/models/{repo_id}/user-access-request/grant`| Allow a specific user to access your repo. |`{"authorization": "Bearer $token"}`|`{"user": "username"} `|
62
62
63
63
The base URL for the HTTP endpoints above is `https://huggingface.co`.
0 commit comments