Sync jobs
Create sync job
You can create new sync job using this action. It takes a JSON object containing a domain informations.
post/api/v1/add/syncjob
Request body
Example request
{
"username": "lisa@mailcow.tld",
"host1": "mail.mailcow.tld",
"port1": "143",
"user1": "demo@mailcow.tld",
"password1": "supersecretpw",
"enc1": "TLS",
"mins_interval": "20",
"subfolder2": "/SyncIntoSubfolder",
"maxage": "0",
"maxbytespersecond": "0",
"timeout1": "600",
"timeout2": "600",
"exclude": "(?i)spam|(?i)junk",
"custom_params": "--dry",
"delete2duplicates": "1",
"delete1": "1",
"delete2": "0",
"automap": "1",
"skipcrossduplicates": "0",
"subscribeall": "0",
"active": "1"
}Response
OK