Forgejo API
PUT/admin/quota/groups/{quotagroup}/users/{username}

Add a user to a quota group

Adds a user to a quota group. Use quotagroup and username to identify the group and account whose membership you want to create.

2 parameters
quotagroupstringrequired
The name or identifier of the quota group to add the user to.
usernamestringrequired
The username of the user to add to the quota group.

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

Error handling

A 400 is returned when quotagroup or username is invalid. A 403 is returned when the authenticated user lacks permission to change quota-group membership, and a 404 is returned when the group or user cannot be found. A 409 indicates a membership conflict; a 422 indicates input validation failure.