Change Subscription
Changed onDev-only: set the caller's own plan_code with no payment.
Any logged-in user could otherwise make themselves Pro / Lab / Enterprise for free (the signed plan token is minted from users.plan_code), so it only answers where settings.manual_plan_change_enabled is on; everywhere else it is a 404 like any unknown route. Real upgrades go through checkout, operator changes through PATCH /api/admin/users/{id}.
post/api/subscription/change
Request
- Base URL: https://api.omicos.cn (the document declares no server; this is the origin it was published from)
- URL: https://api.omicos.cn/api/subscription/change
- Auth: none declared
Headers
authorizationstring nullable
x-omicos-devicestring nullable
x-omicos-device-kindstring nullable
x-omicos-device-namestring nullable
Request body
Response
Successful Response
object required
Changes
- info
added the new optional
headerrequest parameterx-omicos-device - info
added the new optional
headerrequest parameterx-omicos-device-kind - info
added the new optional
headerrequest parameterx-omicos-device-name
- info