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
childId: the unique identifier of the section to become the child
parentId: the unique identifier of the section to become the parent

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
Content-Length: 192
Content-Type: application/x-www-form-urlencoded
Cookie: auth=7B782B430399...7A4FC9243FFD

Request Data:
Unencoded Data:

Url-encoded Data:

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:

Returned Data:

Back to Pages »