Forgejo API
GET/admin/quota/rules/{quotarule}

Get quota rule information

Retrieves a quota rule and its configured limit and subjects. Use quotarule to identify the rule whose definition you need to inspect.

1 parameter
quotarulestringrequired
The name or identifier of the quota rule to retrieve.

4 status codes
200Returns a quota rule object containing its limit, name, and affected subjects.
limitintegeroptional
The limit set by the rule
namestringoptional
Name of the rule (only shown to admins)
subjectsarray<string>optional
Subjects the rule affects
400Returned when `quotarule` is invalid.
messagestringoptional
urlstringoptional
403Returned when the authenticated user is not permitted to view the quota rule.
messagestringoptional
urlstringoptional
404Returned when no quota rule matches `quotarule`.
errorsarray<string>optional
messagestringoptional
urlstringoptional

Error handling

A 400 is returned when quotarule is invalid. A 403 is returned when the authenticated user lacks permission to view quota rules, and a 404 is returned when no quota rule matches quotarule.