Delete device password

Delete device password for authenticated user’s (MailUser) account

  • HTTP Method: DELETE
  • URL: https://example.domain.tld/api/v1/2fa/device_password/
  • Require authentication: Yes
  • Permission level required: MailUser

Request parameters

Parameter Type Description Required
friendly_name str Name (identifier) for device password Required

Response

HTTP 204 NO CONTENT (empty string)

Example request (Python)

import requests
import json
from pprint import pprint

url = "https://example.domain.tld/api/v1/2fa/device_password/"
data = {
"friendly_name" : "Workstation"
}
r = requests.delete(url, json=data, auth=("u2@vonmail.com","long-auth_token-here"))
try:
    pprint(r.json())
except:
    print(r.text)
print(r.status_code)

Example response (text)


204