Documentation

API /content/{contentId}/delete

ThoughtFarmer REST API Method: /content/{contentId}/delete

Deletes a page within ThoughtFarmer. Will also delete all child pages and attachments of the page requested for deletion.

URL:
http://yourserver.com/api/content/{contentId}/delete

http://yourserver.com/api/2.0/content/{contentId}/delete


Response Formats:
xml,json

HTTP Method(s):
POST

Requires Authentication:
true, user making call must pass a valid token parameter and must have edit permissions

Parameters:

Parameter Type Description
contentId int Required. The content id of the content to delete
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Update successful
401 - Token parameter is invalid
403 - No permissions to make update
404 - Content not found

Example request
POST http://yourserver.com/api/content/{contentId}/update
POST Data token={token}
{
   "AbbreviatedTitle":[
      {
         "Key":"en",
         "Value":""
      }
   ],
   "ContentId":42750,
   "CreatorId":99,
   "DateModified":"\/Date(1351560561623-0700)\/",
   "DatePosted":"\/Date(1351560561623-0700)\/",
   "DatePublished":"\/Date(1351560561623-0700)\/",
   "GrandParentId":0,
   "IsPublished":true,
   "LastModifiedBy":"...",
   "Layout":2,
   "ModifiedId":99,
   "OwnerId":99,
   "PageType":1,
   "ParentId":11800,
   "PermissionIsEdit":true,
   "PermissionIsView":true,
   "Summary":[
      {
         "Key":"en",
         "Value":""
      }
   ],
   "Title":[
      {
         "Key":"en",
         "Value":"Page Title"
      }
   ],
   "TreePath":"...",
   "TreePathText":"Directory  People  David Root, Product Marketing  Page Title",
   "Body":"Page Body"
}