deleteSectionSkin()

Pixelsilk API function to delete a section's (page's) skin and fall back to the type skin of the section (page)--requires the edit-page-properties permission
Parameters:
sectionId: the unique identifier of the section (page)

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

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

HTTP Example:
Request Headers:
POST /api2/deleteSectionSkin HTTP/1.1
HOST: www.example.com
Content-Length: 123
Content-Type: application/x-www-form-urlencoded
Cookie: auth=522CA3E0F4C3...8C681A3DC57E

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=61739992F4CE...52C9435A64B; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2

Response Data:
{}

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

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

Returned Data:
{}

Back to Pages »