Operator

Give Pro or Business without Stripe to teams, users' own teams or email addresses (waits for the sign-up), for some days, until a date or with no end; mails the invitees and owners. Fresh two-factor session and a reason; idempotent per requestId

post/operator/plan-grants

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/operator/plan-grants
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Request body

requestIdstring uuid required

one per click: repeating it returns the grants the first call made

planId'pro' | 'business' required
durationDaysinteger

how many days it lasts from its start (7, 14, 30, 90, 365…)

endsAtstring

a fixed end instead (at least an hour from now); give neither for no end

claimDaysinteger

how long an address has to sign up (default 30 days)

notestring

a lasting note for the next operator

reasonstring required

why (audited)

notifyboolean

mail the invitees and the teams' owners (default true)

langstring

the invitees' mail language (default English)

Response

Given

replayboolean required
createdinteger required
skippedinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.