v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01960201.2 KB
Domain admin

Edit Domain Admin user

Using this endpoint you can edit a existing Domain Admin user. This user has full control over a domain, and can create new mailboxes and aliases.

post/api/v1/edit/domain-admin

Request body

itemsobject

contains the domain admin username you want to edit

Example request

{
  "items": [
    "testadmin"
  ],
  "attr": {
    "active": [
      "0",
      "1"
    ],
    "username_new": "testadmin",
    "domains": [
      "domain.tld"
    ],
    "password": "supersecurepassword",
    "password2": "supersecurepassword"
  }
}

Response

OK

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