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.

Response Formats:

HTTP Method(s):
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


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 Data key={key}&value={value}&token={token}