> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/emails/mail-api/messages/update-message-flags.md).

# Update message flags

Add and/or remove flags on a single message. Returns the updated message.

{% openapi src="<https://api.mail.hostinger.com/openapi/openapi.json>" path="/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}" method="patch" %}
<https://api.mail.hostinger.com/openapi/openapi.json>
{% endopenapi %}
