Skip to main content

SuccessResponse_Group

successboolean
Constant value: true
data object
idintegerrequired
namestringrequired
descriptionstring | nullnullablerequired
organizationIdintegerrequired

The owning organization (the sponsor, for a sponsored group).

createdAtstring<date-time>
updatedAtstring<date-time>
grants object[]

The grants attached to the group, preloaded on the routes that return a group.

  • Array [
  • idintegerrequired
    namestringrequired
  • ]
  • isSponsoredbooleanrequired

    When true, reads of the owner's data that the group allows to its attached organizations are paid by the owner, one platform fee per request, and cost the reader nothing.

    monthlyQuotanumber | nullnullablerequired

    The most the sponsor pays for the group per Europe/Paris calendar month, in EUR. null means no cap.

    quotaMessagestring | nullnullablerequired

    The text clients get when the quota is reached. null uses the default text.

    warningMessagestring | nullnullablerequired

    The text of the notice clients get near the limit or while isWarningRaised is true, in place of the default. null uses the default text.

    isWarningRaisedbooleanrequired

    While true, every sponsored read of the group carries the notice (x-sponsored-access-notice), with or without a quota. Raising it sends no email.

    suspensionMessagestring | nullnullablerequired

    The text clients are refused with while the group is suspended, in place of the default suspended or ended text. null uses the default text, and it is always null while the group is not suspended.

    suspendedAtstring,null<date-time>nullablerequired

    When the sponsored access was suspended, null while active.

    suspensionKind objectrequired

    null while active, otherwise temporary or permanent. suspendedAt and suspensionKind are both set or both null.

    oneOf
    GroupSuspensionKind (string)

    How a sponsored group's sponsored access is suspended. temporary can be lifted with DELETE /groups/{group_id}/suspension. permanent is final: it cannot be lifted and the group's sponsored access cannot be restored, the sponsor creates a new group. A temporary suspension can be upgraded to permanent, the reverse is refused.

    Possible values: [temporary, permanent]

    currentMonth object

    Only on sponsored groups.

    amountnumberrequired

    Sum of the sponsor's platform fees booked for the group's sponsored requests this month.

    currencystringrequired
    Example: EUR
    percentagenumber | nullnullablerequired

    amount as a percentage of monthlyQuota, rounded to 2 decimals. null when the group has no quota, 100 for a quota of zero.

    SuccessResponse_Group
    {
    "success": true,
    "data": {
    "id": 0,
    "name": "string",
    "description": "string",
    "organizationId": 0,
    "createdAt": "2024-07-29T15:51:28.071Z",
    "updatedAt": "2024-07-29T15:51:28.071Z",
    "grants": [
    {
    "id": 0,
    "name": "string"
    }
    ],
    "isSponsored": true,
    "monthlyQuota": 0,
    "quotaMessage": "string",
    "warningMessage": "string",
    "isWarningRaised": true,
    "suspensionMessage": "string",
    "suspendedAt": "2024-07-29T15:51:28.071Z",
    "suspensionKind": "temporary",
    "currentMonth": {
    "amount": 0,
    "currency": "EUR",
    "percentage": 0
    }
    }
    }