Update a specific template file for a theme

Update a specific template file for a theme on your Verify tenant without having to update the whole theme.

Before you begin

  1. Get an access token. See Managing themes.
  2. A theme ID is required to update a theme file. To find the theme ID, see List the themes.
  3. Download a specific template file for a theme.

About this task

A Verify page can be changed and customized for your company by updating a specific template file in a theme.

Procedure

  1. Download and update the specific template file in your theme, see Download a specific template file for a theme.
  2. Upload the updated specific template file for the theme back to your tenant.
    curl -X PUT '<https://<tenant>/v1.0/branding/themes/<themeID>/<templatePath>>' --header 'Content-Type: multipart/form-data' --header 'Accept: text/html' -H 'Authorization: Bearer <access_token>' --form 'file=@"<file_path>"'
    where:
    <tenant>
    The fully qualified domain name that is assigned to your Verify subscription.
    <themeID>
    The theme identification name. See List the themes.
    <templatePath>
    Directory path and file name of the specific template file as found in the compressed theme file, for example, authentication/saml/error/default/routing_error.html.
    <access_token>
    The value of the access token you received in Managing themes.

Results

The specific template file in the theme is updated on your Verify tenant.

Example

The following example updates the specific template file named routing_error.html for the theme ID of 38d7387a-3b03-455d-b358-55ed497065e7 on the companyAppTest.verify.ibm.com tenant.

curl -X PUT 'https://companyAppTest.verify.ibm.com/v1.0/branding/themes/38d7387a-3b03-455d-b358-55ed497065e7/authentication/saml/error/default/routing_error.html' --header 'Content-Type: multipart/form-data' --header 'Accept: text/html' {"type":"formData"} -H 'Authorization: Bearer JUHn05z35P4Kd9QaCLHFEyMGEbzeCOo0faBefI9w'