Documentation

/content/{id}/tags [POST]

ThoughtFarmer REST API Method: /content/{id}/tags [POST]

Adds a tag to a page.

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

Response Formats:
JSON, XML

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
id int Required. The content id of the page
tags Array[string] Required. The tag name
token string Required. A valid token authentication parameter

Response Status Codes:
200 - Success
400 - Validation failed
401 - Token parameter is invalid
404 - Page not found
403 - Tagging is not allowed


Example request
POST http://yourserver.com/api/content/{id}/tags
  Content-Type: application/json
[ "Tag A", "Tag B" ]
[
    {
        "tagId": 266,
        "name": "Tag A",
        "frequency": 113,
        "customFieldFrequency": 0
    },
    {
        "tagId": 267,
        "name": "Tag B",
        "frequency": 137,
        "customFieldFrequency": 0
    }
]