Content
Topic Add
Add a topic to a Document.
post/api/content/doc/{docField}/{docId}/topic/{topicLabel}
Request
- Base URLhttps://api.lytics.io
- URLhttps://api.lytics.io/api/content/doc/{docField}/{docId}/topic/{topicLabel}
- AuthAPI key in header Authorization
Path parameters
docFieldstring required
name of field to look up content by
docIdstring required
value of field to look up content by
topicLabelstring required
name of topic to add
Query parameters
account_idstring
Your Lytics account ID.
relevancestring
the relevance threshold to set for the new topic
Response
OK
Example response
{
"status": 200,
"message": "success",
"data": {
"author": "Cookie Monster",
"created": "2016-01-14T08:39:01.354824186-07:00",
"description": "you should definitely make these cookies",
"fetched": "2016-07-19T13:39:20.158747984-04:00",
"id": "4525087172572165639",
"meta": [
"og:locale/en_US"
],
"primary_image": "http://cookdiary.net/wp-content/uploads/images/Oatmeal-Chocolate-Chip-Cookies_1441.jpg",
"stream": "default",
"title": "how to make some cookies",
"topic_relevances": {
"Recipe": 0.64,
"baking": 0.75
},
"topic_rollups": {
"Things": 0.75
},
"topics": [
"baking",
"Recipe"
],
"updated": "2016-07-19T13:34:18-04:00",
"url": "www.recipes.com/chocolate-chip-cookies"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.