What is the updateNews Method?

This method allows you to make changes to an existing news story. By providing a news story ID and details, you can update an existing news story with new content. This updated story is then available to be displayed by your application.

Method Definition

@WebMethod(action = "updateNews", operationName = "updateNews")
public MethodResponse updateNews(String siteKey, String accessKey, NewsHelper news)

Expected Response

stdClass Object
(
[return] => stdClass Object
(
[newsId] => 10213
[newsHeadLine] => News Title - Update
[description] =>
News Description – Update
[startDate] => 2012-05-01T23:24:09-07:00
[pageSectionImages] => stdClass Object
(
)
[link] => http://www.news.com
[publishedAt] => 01-Apr-2011
[publishedBy] => Jeyakumar
[sequenceNumber] => 5
[endDate] => 2032-05-01T17:00:00-07:00
[newsImages] => http://testwp.dev.net/wp-content/uploads/2012/04/orange-150x116.png
[statusCode] => 1000
[statusMessage] => Success
)
)

Back to API reference.