How to create a subfolder with API v3

In API v3, subfolders can be created for Microsoft Accounts only by referencing the parent_id in the request payload of the POST /v3/grants/{grant_id}/folders API call.

Example:

curl --location 'https://api.us.nylas.com/v3/grants/<GRANT_ID>/folders' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <NYLAS_API_KEY>' \
--data '{
    "name": "Child Folder",
    "parent_id": <parent_id>
  }'

 

Please note that subfolder (i.e. nested label) creation is not supported for Google accounts using Nylas API v3 at this time.

 

Resources

Updated

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.