Automate removing and installing the app license
Removing and installing a plugin's license can be done using the UPM REST API. This may be useful to automatically setup test or staging instances.
Remove a license
You can remove a plugin license by sending a DELETE request to https://your-instance/rest/plugins/1.0/<pluginkey>-key/license
It's important here to send application/vnd.atl.plugins+json
in the content type header
For SAML SingleSignOn, this should look like this:
Install a license
To install a license, send a PUT request to https://your-instance/rest/plugins/1.0/<pluginkey>-key/license
It's important here to send application/vnd.atl.plugins+json
in the content type header.
The request body should contain a JSON-String with rawLicense as key and the license string as value.
For SAML SingleSignOn, this should look like this:
Sending this request containing a license key that is already installed will result in a error 400 response with subcode upm.plugin.license.error.invalid.update. To avoid this, uninstall the license using the DELETE request first.