Purpose
Replace or renew an existing license with a new license file.
Preconditions
- A replacement license file and a backup of the current license (if available).
- Access to the app's admin UI or an API token that can update licenses.
Steps
- Back up current license (if an API exists):
curl -H "Authorization: Bearer $TOKEN" "https://APP_BASE_URL/api/license" -o current-license.json
- Upload new license (UI or API). Example API call:
curl -X POST "https://APP_BASE_URL/api/license" \
-H "Authorization: Bearer $TOKEN" \
-F "license=@./new-license.lic"
- Verify the new license details (expiration, enabled features).
Rollback
- If the new license causes issues, re-upload the backed-up
current-license.json or use whatever restore flow the app provides.
Troubleshooting
- 4xx errors: check token permissions and file format.
- 5xx errors: check server logs and contact the app author.
TODO for app author
- Replace placeholders with real endpoints and UI navigation instructions.