Sync jobs

Update sync job source

Changed on

Update one or more sync sources (creator, admins, and domain admins for sources created by mailboxes of their domains). Fields not provided are left unchanged. All checks run before anything is written; a rejected edit changes nothing. Requires the syncjobs ACL.

post/api/v1/edit/syncjob_source

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header X-API-Key

Request body

itemsstring[]

list of source ids to update

Example request

{
  "items": [
    "3"
  ],
  "attr": {
    "name": "Example import",
    "host": "imap.example.org",
    "port": "993",
    "enc": "SSL",
    "auth_type": "PLAIN",
    "active": "1"
  }
}

Response

OK

type'success' | 'danger' | 'error'

Changes