Suspend a sponsored group's sponsored access
POST/groups/:group_id/suspension
Stops the owner paying for the group's clients' reads, without touching the clients' other use of the platform. Sponsored reads are refused until the suspension is lifted, with 402 for a single read, or an entry in errors for a read across datasets. A refusal is free: nobody is charged.
kind: temporarycan be lifted withDELETEon this path.kind: permanentis final.- A temporary suspension can be upgraded to permanent. Switching a permanent suspension to temporary answers
409. - Suspending again with the same kind answers
200;suspendedAtkeeps its first value, and amessagein the body replaces the clients' suspension text (omitted keeps it,nullclears it). - Only sponsored groups can be suspended,
409otherwise.
Requires grant:write and at least the org-admin role of the owner.
Request
Responses
- 200
- 400
- 401
- 404
- 409
- 422
The suspended group, with suspendedAt and suspensionKind set, and currentMonth
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
GROUP_NOT_SPONSORED: the group is not sponsored. GROUP_SUSPENSION_PERMANENT: it is permanently suspended and kind is temporary
Validation failed