DELETE
/hyax-api/v1/posts/:id/featured-images/:mediaIdRemove a featured image
Removes one featured image from the post and keeps the others and their ids, so several can be removed using ids from one read. `:mediaId` is the `id` of the featured media row, from `mediaAttachments` on `GET /posts/:id` or from any `featuredMedia` list. If `post.image` showed the removed image it moves to the next featured image, or is cleared. The stored file is kept.
Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.
Request
curl -X DELETE 'https://platform.hyax.com/hyax-api/v1/posts/clx_example_id/featured-images/:mediaId' \
-H 'Authorization: Bearer YOUR_API_KEY'Response
{
"success": true,
"data": {
"id": "clx…",
"image": "https://cdn.example.com/second.jpg",
"featuredMedia": [
{ "id": "clx…", "type": "Post", "url": "https://cdn.example.com/second.jpg" }
],
"updatedAt": "2025-01-15T12:10:00.000Z"
}
}