Documentation

API /content/{contentId}/tag/add

ThoughtFarmer REST API Method: /content/{contentId}/tag/add

Adds a tag to a page from the ThoughtFarmer API

URL:
http://yourserver.com/api/content/{contentId}/tag/add
http://yourserver.com/api/2.0/content/{contentId}/tag/add

Response Formats:
xml,json

HTTP Method(s):
POST

Requires Authentication:
true, user making call must pass a valid token parameter and must be able to view the content being requested

Parameters:

Parameter Type Description
contentId int Required. The content id of the page to retrieve
tagName string Required. The tag name
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid
404 - Page not found
403 - Adding new tags disabled
403 - Page does not allow tagging
500 - Tag name is empty

Example request
POST http://yourserver.com/api/content/{contentId}/tag/add
{
   "CustomFieldFrequency": 0,
   "Frequency": 0,
   "Name": "hello",
   "TagId": 2344
}