POST
/hyax-api/v1/posts/:id/featured-imagesAdd featured images
Adds featured images after the ones the post already has. URLs already featured on the post, by stored URL or recorded import URL, are skipped, and existing ids do not change. `post.image` is only filled in when it was empty. A post can have up to 20 featured images.
Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.
Request body
| Field | Required | Description |
|---|---|---|
imageUrls | Required | Image URLs to add, in display order. |
Request
curl -X POST 'https://platform.hyax.com/hyax-api/v1/posts/clx_example_id/featured-images' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"imageUrls": [
"https://cdn.example.com/extra.jpg"
]
}'Response
{
"success": true,
"data": {
"id": "clx…",
"image": "https://cdn.example.com/cover.jpg",
"featuredMedia": [
{ "id": "clx…", "type": "Post", "url": "https://cdn.example.com/cover.jpg" },
{ "id": "clx…", "type": "Post", "url": "https://cdn.example.com/extra.jpg" }
],
"updatedAt": "2025-01-15T12:10:00.000Z"
}
}