createNewSectionSkin()

Pixelsilk API function to create a new skin for a section (page) that will override its type skin--requires the edit-page-properties permission
Parameters:
sectionId: the unique identifier of the section (page)

Output:
The function createNewSectionSkin returns void. A successful function call will be detectable by looking at the "Skins" tab for the section in admin. The "Section" radio button will be checked instead of the "Type" radio button.

C# Example:
Guid sectionId = <section's id>;
CreateNewSectionSkin(sectionId);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/createNewSectionSkin HTTP/1.1
HOST: www.example.com
Content-Length: 123
Content-Type: application/x-www-form-urlencoded
Cookie: auth=431D80DC631D...EFEAF38DCC63

Request Data:
Unencoded Data:
json={
   "sectionId":"03754619-b71b-47e7-866d-4f7856c081a0"
}&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=EC632185DB16...B4AA3E2A431; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2

Response Data:
{}

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

Input Object:
{
    sectionId:"7af39bdb-633f-4328-be35-a41a88de7f02"
}

Returned Data:
{}

Back to Pages »