Switches the organisation to another plan. There is no payment provider behind the plans yet, so switching is free.
HTTP
PUT /org/billing/planAccess: Session token only. API keys get 403 with insufficient_scope.
Role: Organisation owner.
Request body #
JSON.
| Field | Type | Required | Description |
|---|---|---|---|
plan | string | yes | The id of a plan from List plans. Currently only free. |
JSON
{ "plan": "free" }Response 200 #
The overview after the change, as in Get billing.
Errors #
| Status | error | When |
|---|---|---|
| 401 | unauthenticated | The token is missing or not valid. |
| 403 | forbidden | You are not the owner of the organisation. |
| 422 | invalid_request | plan is unknown or not offered (invalid), or the organisation uses more than the new plan allows (plan: over_limit, with over listing each limit, used and max). |
| 429 | rate_limited | Too many requests, see Rate limiting. |
See Errors for the error format.