Upgrade or extend an API key in place
POST/v2/admin/keys/:id/plan
Changes an admin-issued key's plan and extends its expiry without
changing the key itself, so the customer's integration keeps working
(e.g. a one-week trial converting to a monthly plan). days (default
30) is added to the current expiry if it is still in the future, or to
now if it lapsed; or give an exact expires_at. An expired key is
switched back on. The linked account gets the same plan.
Request
Responses
- 200
- 400
- 404
The updated key
Unknown tier, bad days/expires_at, or both given
Key not found