Enable password login

Enable password authentication for an account.

  • HTTP Method: DELETE
  • URL: https://example.domain.tld/api/v1/auth/password/disable/<username>/
  • Require authentication: Yes
  • Permission level required: MasterAdmin / DomainAdmin / MailUser

Path parameters

Parameter Type Description Required
username str Account username Required

Response parameters

Parameter Type Description
password_login str enabled

Example request (Python)

import requests
import json
from pprint import pprint

url = "https://example.domain.tld/api/v1/auth/password/disable/admin/"
r = requests.delete(url, auth=("admin","long-auth_token-here"))
try:
    pprint(r.json())
except:
    print(r.text)

Example response (JSON)

{"password_login" : "enabled"}