Update message attributes
Changed onUpdates the attributes (folders, stars, read/unread status, and so on) for the specified email message.
When you make a PUT request, Nylas replaces all data in the nested object with the information included in your request. For more information, see Updating objects.
Request
- Base URLhttps://api.us.nylas.com
- Auth
- HTTP bearer
- or HTTP bearer
Query parameters
Specify fields that you want Nylas to return, as a comma-separated list (for example, select=id,updated_at). This allows you to receive only the portion of object data that you're interested in. You can use select to optimize response size and reduce latency by limiting queries to only the information that you need.
(IMAP, iCloud, and Yahoo only) When true, Nylas queries from the IMAP server directly instead of the Nylas database.
(Microsoft only) When provided, Nylas returns items that were shared from the specified email address. It also accepts grant ID. This parameter only accepts single email address or grant ID. Check out the Shared folders guide for more information.
Request body
Example request
{
"starred": true,
"unread": true,
"folders": [
"folder-1",
"folder-2"
]
}Response
Message response
Example response
{
"request_id": "5fa64c92-e840-4357-86b9-2aa364d35b88"
}Changes
- info
added the optional property
/to the response with the status
- info