Update article slug
update_article_slugChanges the URL slug of an article; the value is normalised (lowercase, hyphens) and must be unique on the website. Translations share the parent slug, so there is no locale option. 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. On a published article the old slug is kept as a redirect on the hosted blog only; other CMSs will serve a 404 on the old URL. Pass website_id when the account has several websites (see get_account).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | New slug, e.g. "best-running-shoes". | |
| 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 |