This version of the API is deprecated.

See text.update for the current version of this method.

corpus.updateArticle

Updates an existing article with new content.

Request Parameters

Corpus IDint (required)

The unique id for the corpus where the article exists.

Article IDint (required)

The id for the article you want to update in the provided corpus.

HeadlineString

Title for the article

LeadString

Lead text for the article

BodyString

Body text for the article

Publish DateString

The date for when the article was published. (YYYY-MM-DD HH:MM:SS, i.e. 2010-01-24 12:23:44)

Publish URLString

The url for where the article can be found on internet.

AuthorsString

The authors of the article.

LanguageString

The language for the article. English and Swedish are supported and specified according to ISO 639-1. Swedish = "sv", English = "en".

Response Parameters

NoneTrue
Returns True if succeeded else throws an error code.

Code Examples

JSON



//Request
{
  "method":"corpus.updateArticle",
  "params":{45,2, "this is my new headline", "this is my new lead text", "this is the body text", "2010-01-24 12:23:44", "http://saplo.com/news/this-is-my-headline/", "Fredrik", "en"},
  "id":0
}

//Response
{"id":0,"result":true}