Documentation

API /content/{contentId}/tags

ThoughtFarmer REST API Method: /content/{contentId}/tags

Gets all tags for a page from the ThoughtFarmer API

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

Response Formats:
xml,json

HTTP Method(s):
GET

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
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid
404 - Page not found
403 - Page does not allow tagging

Example request
POST http://yourserver.com/api/content/{contentId}/tags
[
   {
      "CustomFieldFrequency": 0,
      "Frequency": 1,
      "Name": "Human Resources",
      "TagId": 2345
   },
   {
      "CustomFieldFrequency": 0,
      "Frequency": 1,
      "Name": "Sales",
      "TagId": 2346
   }
]