This version of the API is deprecated.
See group.deleteText for the current version of this method.context.deleteLikeArticles
Delete articles that exist in a context.
Request Parameters
| Context ID | int (required) |
A unique id for the context you want to add the like articles to.
| Corpus ID | int (required) |
The corpus id for where the articles you want to add as "like" articles exists.
| Article IDs | Java Formatted ArrayList (required) |
A java formatted ArrayList containing all article ids you want to delete from the context. See User Notes for how to do a Java formatted ArrayList.
| wait | int (default: 0) |
Maximum time you want to wait for the process. Maximum is 120 sec. If you set 0 you will only start the process and disconnect.
Response Parameters
| None | Boolean |
True if it was a success else throws exception.
Code Examples
JSON
//Request
{"method":"context.deleteLikeArticles","params":[4, 45,{"javaClass":"java.util.ArrayList","list":[1,34,891]},5],"id":0}
//Response
{"id":0,"result":true}
Notes
A Java formatted ArrayList looks like this:
{"javaClass":"java.util.ArrayList","list":[1,34,891]}
Basically you need to send a JSON object looking like the one above, but replace the numbers with your article ids.