# Feature Image through API gone

**URL:** <https://forum.ghost.org/t/feature-image-through-api-gone/50167>\
**Category:** Integrations & API\
**Created:** [September 9, 2024, 6:53pm UTC](https://forum.ghost.org/t/feature-image-through-api-gone/50167 "2024-09-09T18:53:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [September 9, 2024, 7:55pm UTC](https://forum.ghost.org/t/feature-image-through-api-gone/50167/3 "2024-09-09T19:55:21Z")

</div>

There’s a file upload endpoint that you’ll want to upload your file to. Good discussion of how to interact with it at the end of this thread:

> [@Uploading images to ghost Admin-API](https://forum.ghost.org/t/uploading-images-to-ghost-admin-api/41348/14):
>
> @Hailst0rm Here’s code I wrote that works for me. I confirmed it returns a successful response and that the file is indeed on the file system after the upload. Here I don’t send the Content-Type as I advised above. import \* as fs from 'node:fs/promises'; // Construct the token from the key exactly as Ghost would. import keyToToken from '@tryghost/admin-api/lib/token.js' const token = keyToToken(key, '/admin'); const key = 'ADMIN-KEY-FROM-GHOST'; const imagePath = '/home/mark/Downloads/face.…

I’m not able to tell from your example code where exactly your file is going, if anywhere.

Aside: You don’t need to include everything in the PUT request, and you probably specifically do NOT want to include the mobiledoc (phased out). You should be able to include the id or slug, updated\_at, and the feature\_image only.

---

_[View the full topic](https://forum.ghost.org/t/feature-image-through-api-gone/50167)._
