Documentation

/document/edit/file/{contentId}

ThoughtFarmer REST API Method: /document/edit/file/{contentId}

Gets a file for editing and locks the document
 
URL:
http://yourserver.com/api/document/edit/file/{contentId}
http://yourserver.com/api/2.0/document/edit/file/{contentId}

Response Formats:
xml,json

HTTP Method(s):
GET
 
Requires Authentication:
true, user making call must pass a valid token parameter and be able to edit the requested document

Parameters:

Parameter Type Description
contentId int
The contentId of the file to edit
token  string  Required. A valid token authentication parameter
Response Status Codes:
200 - Success
400 - Parameter validation errors
401 - Token parameter is invalid
403 - No permission to edit the file
404 - File does not exist
412 - The file is locked by another user

Example request
GET http://yourserver.com/api/document/edit/file/{contentId}
byte array of file contents