Update Message

**CLI:** ```bash agentmail inboxes:messages update --inbox-id <inbox_id> --message-id <message_id> --add-label read --remove-label unread ```

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

inbox_idstringRequired
The ID of the inbox.
message_idstringRequired
ID of message.

Request

This endpoint expects an object.
add_labelsstring or list of stringsOptional
Label or labels to add to message.
remove_labelsstring or list of stringsOptional
Label or labels to remove from message.

Response

This endpoint returns an object.
message_idstring
ID of message.
labelslist of strings
Labels of message.

Errors

400
Validation Error
404
Not Found Error