Documentation

/content/{id}/children [GET]

ThoughtFarmer REST API Method: /content/{id}/children [GET]

Retrieves all child pages of a given content page

URL:
http://yourserver.com/api/content/{id}/children

Response Formats:
JSON, XML

HTTP Method(s):
GET

Requires Authentication:
true, user making call must pass a valid token parameter and must be able to view the content being requested

Parameters:

Parameter Type Description
id int Required. The content id of the page
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Success
204 - If the content page has no children
401 - Token parameter is invalid
404 - Content page not found

Example request
GET http://yourserver.com/api/content/{id}/children
[
   {
      "__type":"Detail",
      "AbbreviatedTitle":[
         {
            "Key":"en",
            "Value":""
         }
      ],
      "ContentId":4262,
      "CreatorId":72,
      "DateModified":"\/Date(1316482570937-0700)\/",
      "DatePosted":"\/Date(1316482564717-0700)\/",
      "DatePublished":"\/Date(1316482564717-0700)\/",
      "GrandParentId":103,
      "LastModifiedBy":"...",
      "ModifiedId":72,
      "OwnerId":72,
      "ParentId":4259,
      "Summary":[
         {
            "Key":"en",
            "Value":""
         }
      ],
      "Title":[
         {
            "Key":"en",
            "Value":"..."
         }
      ],
      "PermissionIsView":true,
      "PermissionIsEdit":true,
      "TreePathText":"...",
      "TreePath":"...",
      "ViewTypes":[
         7,
         25
      ],
      "Body":[
         {
            "Key":"en",
            "Value":""
         }
      ],
      "Group":null,
      "IsGroup":false
   },
   {
      "__type":"Detail",
      "AbbreviatedTitle":[
         {
            "Key":"en",
            "Value":""
         }
      ],
      "ContentId":4260,
      "CreatorId":72,
      "DateModified":"\/Date(1316482480847-0700)\/",
      "DatePosted":"\/Date(1316482473057-0700)\/",
      "DatePublished":"\/Date(1316482473057-0700)\/",
      "GrandParentId":103,
      "LastModifiedBy":"...",
      "ModifiedId":72,
      "OwnerId":72,
      "ParentId":4259,
      "Summary":[
         {
            "Key":"en",
            "Value":""
         }
      ],
      "Title":[
         {
            "Key":"en",
            "Value":"Social Calendar"
         }
      ],
      "PermissionIsView":true,
      "PermissionIsEdit":true,
      "TreePathText":"...",
      "TreePath":"...",
      "ViewTypes":[
         7,
         24
      ],
      "Body":[
         {
            "Key":"en",
            "Value":""
         }
      ],
      "Group":null,
      "IsGroup":false
   }
]