promoteTheme()

Pixelsilk API function to copy the theme to the parent group of the group the site belongs to--currently only available to limited users--requires the advanced-admin-access permission--the effect of this is seen in SysAdmin
Parameters:
themeId: the unique identifier of the theme

Output:
The function promoteTheme returns void.

C# Example:
Guid themeId = <theme's id>;
PromoteTheme(themeId);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/promoteTheme HTTP/1.1
HOST: www.example.com
Content-Length: 121
Content-Type: application/x-www-form-urlencoded
Cookie: auth=8DBDCD5EB9F2...EFE5D8166BD2

Request Data:
Unencoded Data:
json={
   "themeId":"110E9ACC-B600-4B1A-B7D0-AEA4D79932B1"
}&token=7AdbNHZQBtwc...RPTEK8UvSUQ=

Url-encoded Data:
json=%7b%0d%0a+++...%22%0d%0a%7d&token=7AdbNHZQBtwc...TEK8UvSUQ%3d

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=D69D0C44874E...609B39BF550; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2

Response Data:
{}

JavaScript Example:
Method Call:
pixelsilk2.promoteTheme(input, callback);

Input Object:
{
    themeId:"5c15b6b8-5cc7-4f96-8f27-3a7425aec06e"
}

Returned Data:
{}

Back to Themes »