Update a group, including its sponsorship and quota
PATCH/groups/:group_id
Updates the name and description, and the sponsorship of the group.
isSponsored: truemakes the group sponsored: reads of the owner's data allowed by the group to its attached organizations are then paid by the owner. It requires the owner organization to beenterprise(post-paid), every grant of the group to be a cluster-data grant (rooted on a cluster), and no attached organization to already hold a sponsored group of the same owner. Direct (group_users) members are never sponsored.monthlyQuota(EUR, 0 to 10,000,000,nullfor no cap) andquotaMessageapply to sponsored groups, the quota counts over the Europe/Paris calendar month.warningMessagewords the notice clients get near the limit, andisWarningRaisedturns that notice on by hand, with or without a quota.- Turning
isSponsoredoff puts the group back on normal billing at once. On a permanently suspended group it is allowed, turning it back on is refused.
Answers 200 with data.status updated (and the group, with currentMonth when it is sponsored) or name-taken. A rule refusal is a 409 with its code in error.name.
Requires grant:write and at least the org-admin role of the owner.
Request
Responses
- 200
- 400
- 401
- 404
- 409
- 422
The outcome, in data.status
An ID in the path is not a valid integer
UNAUTHORIZED: the token lacks the grant:read / grant:write ability, or the caller lacks the required role in the organization
GROUP_NOT_FOUND: the group does not exist in the current organization. A group of another organization is a 404 too, including for an admin of a member organization asking for its sponsor's group
The change violates a sponsored-group rule. error.name is one of SPONSORED_GROUP_REQUIRES_ENTERPRISE (the owner is not enterprise), SPONSORED_GROUP_CLUSTER_ONLY (a grant is not rooted on a cluster), SPONSORED_GROUP_ALREADY_EXISTS (an organization already holds a sponsored group of this owner), SPONSOR_CANNOT_BE_MEMBER (the owner is attached to its own sponsored group) or GROUP_SUSPENSION_PERMANENT (sponsorship cannot be turned back on)
Validation failed