Sync jobs
Create sync job
Changed onCreate a sync job for a local mailbox. Connection data (host, port, encryption, authentication) comes from the sync source referenced by source_id. Requires the syncjobs ACL (user ACL for mailbox users, domain admin ACL for domain admins).
post/api/v1/add/syncjob
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-API-Key
Request body
Example request
{
"username": "lisa@mailcow.tld",
"source_id": "3",
"user1": "demo@remote.tld",
"password1": "supersecretpw",
"mins_interval": "20",
"subfolder2": "/SyncIntoSubfolder",
"maxage": "0",
"maxbytespersecond": "0",
"timeout1": "600",
"timeout2": "600",
"exclude": "(?i)spam|(?i)junk",
"custom_params": [
{
"o": "folder",
"v": "INBOX"
},
{
"o": "syncinternaldates",
"v": ""
}
],
"delete2duplicates": "1",
"delete1": "0",
"delete2": "0",
"automap": "1",
"skipcrossduplicates": "0",
"subscribeall": "1",
"dry": "0",
"active": "1"
}Response
OK
Changes
- breaking
the
request property type changed fromstringtoarray - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
request property
deprecated - info
request property
deprecated - info
request property
deprecated
- breaking
- info
added the new optional request property
- info