Resetting themes

You can eliminate all themes and template customizations for a tenant, and effectively resets their customizations back to the out of the box templates.

Procedure

  1. Get and access token.
    Use an API client that has the manageTemplates entitlement to generate an access token. For more information, see Creating API clients.
    Request:
    
    curl https://<tenant-hostname>/oidc/endpoint/default/token -d 'grant_type=client_credentials&client_id=<client_id>&client_secret=<client_secret>'
    
    Response:
    
    {
      "access_token": "XHwFNxa6ey9Lcb6oR8fPyNZp1tCkVPZCPSBRcrco",
      "token_type": "Bearer",
      "expires_in": 7199,
      "scope": "openid"
    }
    
     
    Save the access token for subsequent requests.
  2. Reset the themes.
    Call the reset theme API. It eliminates all themes and template customizations for a tenant, and effectively resets their customizations back to the out of the box templates.
    Request:
    
    curl -X DELETE  -H "Authorization: Bearer <access_token>" https://<tenant-hostname>/v1.0/branding/reset
    
    Response:
    
    204 No Content