Domains

You can update one or more domains per request. You can also send just attributes you want to change. Example: You can add domain names to items list and in attr object just include "active": "0" to deactivate domains.

post/api/v1/edit/domain

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[]

contains list of domain names you want update

Example request

{
  "attr": {
    "active": "1",
    "aliases": "400",
    "backupmx": "1",
    "defquota": "3072",
    "description": "domain description",
    "gal": "1",
    "mailboxes": "10",
    "maxquota": "10240",
    "quota": "10240",
    "relay_all_recipients": "0",
    "relayhost": "2",
    "tags": [
      "tag3",
      "tag4"
    ]
  },
  "items": "domain.tld"
}

Response

OK

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

Changes

    • breaking

      the request property type changed from object to array

    • breaking

      removed the media type */* for the response with the status

    • 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 media type application/json for the response with the status

    • warning

      removed the request property /