Promote Articles in a Section
Set the list of promoted articles for the specified section.
URL
POST https://news-api.apple.com/sections/{sectionId}/promotedArticlesPath Parameters
| Name | Type | Description |
|---|---|---|
sectionId Required | string | The UUID of the section. |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | PromoteArticleResponse | The request was successful. |
| 400 | Bad Request Content-Type: application/json | Error | The specified article ID isn’t a valid Key path: |
| 401 | Unauthorized Content-Type: application/json | Error | You didn’t include the Key path: None. |
| 403 | Forbidden Content-Type: application/json | Error | The channel doesn’t have permission to promote the article. Key path: Value: |
| 404 | Not Found Content-Type: application/json | Error |
|
| 422 | Content-Type: application/json | Error |
Key path: |
Discussion
A Promote Articles in a Section request sets the list of promoted articles for the specified section. You can promote up to six articles per section. Note that each article promoted in a section should have a thumbnail image. The system generates an error if an article in the list doesn’t include a thumbnail image. The list of articles given in the body of this request replaces any previous list of promoted articles. You can remove the list of promoted articles for the section by specifying an empty list. The promoted articles list is valid for a system-defined time period after it is set.
The request body must be in JSON, in the following format:
{
"data": {
"promotedArticles": [
"F59D1784-CAFC-432A-9A1A-EF2FCE1E1C60",
"2027DD1B-2794-4B0A-B9DC-F7EE696411FF"
]
}
}Example
HTTP Body
The list of IDs for articles you want to promote.