Documentation

/customportlets/{templateId}/data [PUT]

ThoughtFarmer REST API Method: /customportlets/{templateId}/data [PUT]

Create or update key/value stored for a custom portlet. If the key does not yet exist for the portlet, it will be created. If it does exist, the value will be updated.
 
URL:
http://yourserver.com/api/customportlets/{templateId}/data

Response Formats:
JSON, XML

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

Parameters:

Parameter Type Description 
token string Required. A valid token authentication parameter
templateId int Required. The portlet template id.
key string Required. The key to create/update.
value string Required. The value to create/update.

Response Status Codes:
200 - Success
401 - Token parameter is invalid

Example request
PUT http://yourserver.com/api/customportlets/641/data
  Authorization: {token}
Content-Type: application/json
{
    "key": "MyKey",
    "value": "SomeValue"
}
200 OK