Update an existing blog post
user_id with the authenticated user’s ID from the JWT token.
api.auth middleware to verify the JWT token.
Header:
json field.
id, user_id, created_at, and user.title: Required fieldcontent: Required fieldcategory_id: Required fieldimage field is not required when updating a post.id - Post identifieruser_id - Post ownercreated_at - Creation timestampuser - User relationship data