Upload an article image
upload_article_imageHosts an image on the website's media host for use inside an article body, either downloaded from a public URL (image_url) or uploaded from the user's machine (upload_id, see create_image_upload). Returns the hosted URL: reference it in markdown as and save the body with update_article_content. Does not change the article by itself. Free. Pass website_id when the account has several websites (see get_account).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | No | Public http(s) URL of the image to download (JPEG, PNG, WebP, GIF or AVIF, 4 MB max). For a file on the user's machine, pass upload_id instead. | |
| upload_id | No | upload_id returned by create_image_upload, once the file has been sent to its upload_url. Alternative to image_url for files on the user's machine (10 MB max). | |
| article_id | Yes | Article the image belongs to (it is stored under that article). | |
| website_id | No | Website id from get_account. Optional when the account has a single website. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes | Hosted URL to reference in the markdown body. |