Create a folder
POST/api/accounts/:accountId/folders
Creates a new IMAP folder and returns its path. path is the full folder path, so to create a subfolder include the parent and the server's hierarchy delimiter (for example INBOX/Receipts).
The server does not check capabilities; if the IMAP server refuses, for example because the folder already exists, the call returns 424.
Request
Responses
- 201
- 400
- 401
- 404
- 424
Folder created.
Request failed.
The session has no mailbox access token. code is mail_token_missing; sign in again.
The account does not exist or belongs to another user.
The IMAP, SMTP or Sieve server, or the platform, refused the request or could not be reached.