Documentation Index
Fetch the complete documentation index at: https://mintlify.com/miikorz/DailyNews/llms.txt
Use this file to discover all available pages before exploring further.
PUT /feed/:id updates an existing news feed item in MongoDB. The update is partial — only the fields included in the request body are written; omitted fields retain their current values. Internally the service calls findByIdAndUpdate with the new: true option, so the response always reflects the document’s state after the update. If no document matches the given id, the server responds with 404 NOT_FOUND.
Endpoint
Path Parameters
The MongoDB ObjectId of the feed item to update (e.g.
664a1f2e8b3c2a001e4d7f01).Request Body
Send a JSON body withContent-Type: application/json. All fields are optional — include only the ones you want to change.
New headline or title of the news article.
New summary or excerpt of the article.
New byline for the article.
New canonical URL for the article.
New cover or thumbnail image URL. May be set to
null to clear the field.New source identifier or publication name.
Response
The Feed object as it exists in MongoDB after the update has been applied.
Always
null on a successful 200 response.Example Request
Example Response
Error Responses
404 — Feed item not found:Status Codes
| Code | Meaning |
|---|---|
200 | Feed item updated and returned successfully |
404 | No feed item exists with the provided ObjectId |
500 | An unexpected server error occurred |