Update article headline
update_article_headlineRenames an article (or one of its translations when locale is given). Editing an article that is already published (or published in draft) marks it Out of Sync until it is synced with sync_article_to_cms or published again. Renaming an article that already lives on a CMS freezes its current slug so the live URL does not move; use update_article_slug to change the URL on purpose. Pass website_id when the account has several websites (see get_account).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Translation locale (e.g. "fr") to target instead of the default-language article. | |
| headline | Yes | New headline. | |
| article_id | Yes | Article id from list_articles. | |
| website_id | No | Website id from get_account. Optional when the account has a single website. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| locale | Yes | Translation locale the change applied to; null for the default-language article or a field shared by every locale. The other fields always describe the default-language article. | |
| status | Yes | Raw status; status_label is the human reading. | |
| message | Yes | What changed, e.g. "Headline updated for the fr version." | |
| headline | Yes | ||
| article_id | Yes | ||
| created_at | Yes | ||
| preview_text | Yes | First 200 characters of the body. | |
| published_at | Yes | ||
| status_label | Yes | Status as shown in the app, e.g. Published, Draft on CMS, Failed to publish. | |
| is_out_of_sync | Yes | Edited since the last push to the CMS; sync_article_to_cms clears it. | |
| main_image_url | Yes | Cover image URL. | |
| target_keyword | Yes | ||
| meta_description | Yes |