Update IMAP folders
Update the folder overrides for an IMAP account. Requires admin.accounts.
PATCH /api/v1/admin/accounts/{accountId}/imap/folders
Update the folder overrides for an IMAP account. Requires admin.accounts.
Authentication
Pass a Fluxmail API key as a bearer token. The key owner must be an administrator, and the key must include the administrative capability named in the endpoint description.
Remote administrative requests require HTTPS. Requests from the local computer can use HTTP.
Request
curl 'http://localhost:8977/api/v1/admin/accounts/acct_123/imap/folders' \
-X PATCH \
-H "Authorization: Bearer $FLUXMAIL_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"sent": "Sent"
}'Parameters
| Name | Location | Required | Type | Details |
|---|---|---|---|---|
accountId | path | Yes | string | Minimum length: 1. Maximum length: 200. |
Request body
Content type: application/json
{
"type": "object",
"properties": {
"sent": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 1024
},
"drafts": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 1024
},
"trash": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 1024
},
"archive": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 1024
},
"spam": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 1024
}
},
"additionalProperties": false,
"example": {
"sent": "Sent"
}
}Responses
| Status | Description | Content type |
|---|---|---|
200 | Updated folder overrides | application/json |
400 | Invalid request | application/json |
401 | Authentication required | application/json |
403 | Administrative access denied | application/json |
404 | Resource not found | application/json |
409 | Request conflict | application/json |
413 | Request body too large | application/json |
415 | Unsupported media type | application/json |
500 | Internal error | application/json |
502 | License could not be verified | application/json |
200 response
{
"type": "object",
"properties": {
"data": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"data"
],
"additionalProperties": false
}Last updated