Documentation

API /user/{userId}/state

ThoughtFarmer REST API Method: /user/{userId}/state

Updates the user state value of a key/value pair for the supplied user id.
 
URL:
http://yourserver.com/api/user/{userId}/state
http://yourserver.com/api/2.0/user/{userId}/state


Response Formats:
xml,json

HTTP Method(s):
POST
 
Requires Authentication:
true, user making call must pass a valid token parameter and to update this value, the requesting user must be an administrator or the user being accessed

Parameters:

Parameter Type Description
userId int Required. The user id of the user to retrieve
key string Required. The key of the user state entry
value string Required. The updated value of the user state entry
token string  Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid
403 - You are not allowed to update the userstate
404 - You do not have permission to view the user

Example request
POST http://yourserver.com/api/user/{userId}/state
POST Data key={key}&value={value}&token={token}
"1"