Download a theme with API
Download a theme compressed file for your Verify tenant.
Before you begin
- Get an access token. See Managing themes.
- A theme ID is required to download a theme. To find the theme ID, see List the themes.
About this task
Download the theme files to customize the Verify pages on your tenant.
Procedure
Results
A compressed theme file is returned to the current directory with the following format.
/templates/
{templateDirectories}/
{locales}/
{templateNames}
Examples
To download the most recent master theme files, issue the following command:
curl -X GET -H "Authorization: Bearer m1KhswVeQy84CF4sAki88phTkpmnYtaDzWi26ASX" -H "Accept: application/octet-stream" https://companyAppTest.verify.ibm.com/v1.0/branding/themes/master > master_theme.zip
To download the customizations that are currently applied globally for all applications on your tenant, issue the following command:
curl -X GET -H "Authorization: Bearer m1KhswVeQy84CF4sAki88phTkpmnYtaDzWi26ASX" -H "Accept: application/octet-stream" https://companyAppTest.verify.ibm.com/v1.0/branding/themes/default ?customized_only=true > my_default_theme.zip
To download the customizations for the theme ID of bb828385-e11c-4041-8474-eb95bdc2a35c, issue the following command:
curl -X GET -H "Authorization: Bearer m1KhswVeQy84CF4sAki88phTkpmnYtaDzWi26ASX" -H "Accept: application/octet-stream" https://companyAppTest.verify.ibm.com/v1.0/branding/themes/bb828385-e11c-4041-8474-eb95bdc2a35c ?customized_only=true > my customized_theme_files.zip
To download the theme ID of bb828385-e11c-4041-8474-eb95bdc2a35c, the global default customizations, and the master templates that are not currently customized, issue the following command:
curl -X GET -H "Authorization: Bearer m1KhswVeQy84CF4sAki88phTkpmnYtaDzWi26ASX" -H "Accept: application/octet-stream" https://companyAppTest.verify.ibm.com/v1.0/branding/themes/bb828385-e11c-4041-8474-eb95bdc2a35c > theme3.zip