Documentation

API /content/{contentId}/changeowner/{userId}

ThoughtFarmer REST API Method: /content/{contentId}

Changes the owner of a piece of content to the supplied user

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

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


Response Formats:
xml,json

HTTP Method(s):
POST

Requires Authentication:
true, user making call must pass a valid token parameter and must be able to edit the content to change ownership on

Parameters:

Parameter Type Description
contentId int Required. The content id of the page to change ownership of
userId int Required. The user id of the person to change ownership to
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid
404 - User not found
403 - User is not allowed to become owner of the page
404 - Content page not found

Example request
POST http://yourserver.com/api/content/{contentId}/changeowner/{userId}
{
   "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"
}