editTheme()
Pixelsilk API function to edit a theme's name--requires the edit-skin permission
Parameters:
input: a theme object with its properties set: id, name, description, isSystemRole, isHidden, adminAccess
Output:
The function editTheme returns void.
C# Example:
For this example imagine you have instantiated a theme object and called inputObj.
object input = inputObj;
EditTheme(input);
Note the capital first letter of the C# method.
HTTP Example:
Request Headers:
POST /api2/editTheme HTTP/1.1
HOST: www.example.com
Content-Length: 207
Content-Type: application/x-www-form-urlencoded
Cookie: auth=16750F5F723C...92AFE4B6FB0F
Request Data:
Unencoded Data:
json={
"id":"27a3cbe7-ee01-4820-908f-a6a333ad22ef",
"name":"Example Theme 1",
"groupName":"Pixelsilk"
}&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=ABE2214D8C17...3FDA7C91E35; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2
Response Data:
{}
JavaScript Example:
Method Call:
pixelsilk2.editTheme(input, callback);
Input Object:
{
id:"b87f48ad-a660-492e-bba9-c0cd38a00492",
name:"AuxiliaryTheme",
groupName:""
}
Returned Data:
{}
Back to Themes »