Documentation

API /user/{userId}/status/update

ThoughtFarmer REST API Method: /user/{userId}/status/update

Updates the status of a user in the ThoughtFarmer API.
 
URL:
http://yourserver.com/api/user/{userId}/status/update

http://yourserver.com/api/2.0/user/{userId}/status/update


Response Formats:
xml,json

HTTP Method(s):
POST
 
Requires Authentication:
true, user making call must pass a valid token parameter

Parameters:

Parameter Type Description
userId int Required. The user id of the user whose status will be updated
status string(255) Required. The status update
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid
403 - Only an admin or the user making the call for their user can update the status
404 - User not found

Example request
POST http://yourserver.com/api/user/{userId}/status/update
POST Data status={status}&token={token}
{
   "Status":"updated status",
   "StatusLastUpdated":"\/Date(1244529025997-0700)\/",
   "StatusLastUpdatedRelative":"Updated Jun 8, 2009"
}