moveSectionMakeChild()
Pixelsilk API function to move a section to be a child of another section (used from the Manage Pages UI)--requires the move-page permission
Parameters:
childId: the unique identifier of the section to become the child
parentId: the unique identifier of the section to become the parent
Output:
The function moveSectionMakeChild returns void.
C# Example:
Guid childId = <child section's id>;
Guid parentId = <parent section's id>;
MoveSection MakeChild(childId, parentId);
Note the capital first letter of the C# method.
HTTP Example:
Request Headers:
POST /api2/moveSectionMakeChild HTTP/1.1
HOST: www.example.com
Content-Length: 192
Content-Type: application/x-www-form-urlencoded
Cookie: auth=7B782B430399...7A4FC9243FFD
Request Data:
Unencoded Data:
json={
"childId":"39d80eed-9428-4e23-aed3-c0fb52ab9013",
"parentId":"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=DBC8EDE15785...5B9CBF1A571; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2
Response Data:
{}
JavaScript Example:
Method Call:
pixelsilk2.moveSectionMakeChild(input, callback);
Input Object:
{
childId:"51caaa3b-0667-4980-ad9f-72936c14bf94",
parentId:"be799b8b-e177-47fc-97dc-d10a1d2202a1"
}
Returned Data:
{}
Back to Pages »