/
var
/
www
/
html
/
sugardemo
/
include
/
api
/
help
/
Upload File
HOME
<!-- /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ --> <h2>Overview</h2> <span class="lead"> Fetches the customizable variables of a theme. </span> <h2>Request Arguments</h2> <table class="table table-hover"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Required</th> </tr> </thead> <tbody> <tr> <td>platform</td> <td>String</td> <td>The theme platform - /themes/clients/***PLATFORM***/themeName/. Accepted values are 'base' and 'portal'.</td> <td>False</td> </tr> <tr> <td>themeName</td> <td>String</td> <td>The theme name - /themes/clients/platform/***THEME NAME***/.</td> <td>False</td> </tr> </tbody> </table> <h3>Request</h3> <pre class="pre-scrollable"> http://{site_url}/rest/v10/theme?platform=base&themeName=default </pre> <strong>Note:</strong> GET endpoint parameters are passed in the form of a query string. <h2>Response Arguments</h2> <table class="table table-hover"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>mixins</td> <td>Array</td> <td>An array of name value pairs detailing mixin colors</td> </tr> <tr> <td>hex</td> <td>Array</td> <td>A array of name value pairs detailing css colors</td> </tr> <tr> <td>rgba</td> <td>Array</td> <td>An array of name value pairs detailing colors</td> </tr> <tr> <td>rel</td> <td>Array</td> <td>An array of name value pairs detailing relationships</td> </tr> <tr> <td>bg</td> <td>Array</td> <td>An array of name value pairs detailing backgroup colors</td> </tr> </tbody> </table> </span> <h3>Response</h3> <pre class="pre-scrollable"> { "colors":[ { "name":"BorderColor", "value":"#E61718" }, { "name":"NavigationBar", "value":"#000000" }, { "name":"PrimaryButton", "value":"#177EE5" } ] } </pre> <h2>Change Log</h2> <table class="table table-hover"> <tr> <th>Version</th> <th>Change</th> </tr> <tr> <td> v10 </td> <td> Added <code>/<theme></code> GET endpoint. </td> </tr> </table>