Forgejo API
PUT/admin/quota/groups/{quotagroup}/rules/{quotarule}

Add a rule to a quota group

Adds a quota rule to a quota group. Use quotagroup and quotarule to identify the group and rule that should be associated.

2 parameters
quotagroupstringrequired
The name or identifier of the quota group to add the rule to.
quotarulestringrequired
The name or identifier of the quota rule to add to the group.

6 status codes
204Returns no content after the quota rule is added to the quota group.
400Returned when `quotagroup` or `quotarule` is invalid.
messagestringoptional
urlstringoptional
403Returned when the authenticated user is not permitted to modify the quota group.
messagestringoptional
urlstringoptional
404Returned when the quota group or quota rule does not exist.
errorsarray<string>optional
messagestringoptional
urlstringoptional
409Returned when adding the rule conflicts with the existing quota group configuration.
messagestringoptional
urlstringoptional
422Returned when the quota group or rule association fails input validation.
messagestringoptional
urlstringoptional

Error handling

A 400 is returned when quotagroup or quotarule is invalid. A 403 is returned when the authenticated user lacks permission to change quota groups, and a 404 is returned when either resource cannot be found. A 409 indicates that the association conflicts with the current quota configuration; a 422 indicates input validation failure.