Let the platform do the work

/theme POST

Overview

Updates the variables.less (less file containing customizable vars in the theme folder) with the set of variables passed as arguments.

Request Arguments

Name Type Description Required
platform String The theme platform - /themes/clients/***PLATFORM***/themeName/. Accepted values are 'base' and 'portal'. True
themeName String The theme name - /themes/clients/platform/***THEMENAME***/. True
<theme variable> String The variables of the theme False

Request

{
    platform:'portal',
    themeName:'default',
    primary:'default',
    secondary:'#aaaaaa',
    primaryBtn:'#bbbbbb',
}

Response Arguments

Name Type Description
<css path> String Returns the path of the new bootstrap.css file.

Response

"http:\/\/sugarcrm\/cache\/themes\/clients\/base\/default\/6a031485bf5239b9462e4aaba72a4646.css"

Change Log

Version Change
v10 Added /<theme> POST endpoint.