deleteSectionById()

Pixelsilk API function to delete a section (used from the Manage Pages UI)--requires the delete-page permission
Parameters:
sectionId: the unique identifier of the section (page)

Output:
The function deleteSectionById returns void.

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

HTTP Example:
Request Headers:
POST /api2/deleteSectionById HTTP/1.1
HOST: www.example.com
Content-Length: 123
Content-Type: application/x-www-form-urlencoded
Cookie: auth=E3C357B0D875...4FAAE6977F3B

Request Data:
Unencoded Data:
json={
   "sectionId":"39d80eed-9428-4e23-aed3-c0fb52ab9013"
}&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=7F9A24CB405E...F89D7310037; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2

Response Data:
{}

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

Input Object:
{
    sectionId:"51caaa3b-0667-4980-ad9f-72936c14bf94"
}

Returned Data:
{}

Back to Pages »