Skip to main content

create_mail_folder

Function create_mail_folder 

Source
pub async fn create_mail_folder(
    http: &Client,
    base_url: &str,
    access_token: &str,
    display_name: &str,
) -> Result<MailFolder, ClientError>
Expand description

POST /me/mailFolders: create a new top-level folder, returning it.

Graph rejects a duplicate displayName with 409; callers that want “create if missing” semantics should list first and only call this when no case-insensitive match exists.