Folders
Update folder
Rename an existing folder.
put/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}
Request
- Base URL: https://api.mail.hostinger.com
- URL: https://api.mail.hostinger.com/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}
- Auth: HTTP bearer
Path parameters
mailboxResourceIdstring required
Resource ID of the managed mailbox the bearer token is authorized for.
folderstring required
Current folder path (URL-encoded).
Request body
Example request
{
"name": "Archive"
}Response
Folder renamed.
Example response
{
"data": {
"path": "INBOX.Sent",
"name": "Sent",
"delimiter": ".",
"specialUse": "\\Sent",
"messageCount": 42,
"unreadCount": 5
}
}Changes
No recorded changes to this operation across all 1 revision of this API.