Delete credential¶
Delete registered WebAuthn (passwordless authentication) credential of authenticated account
- HTTP Method:
DELETE
- URL:
https://example.domain.tld/api/v1/webauthn/credentials/
- Require authentication:
Yes
- Permission level required:
MasterAdmin
/DomainAdmin
/MailUser
Request parameters¶
Parameter | Type | Description | Required |
---|---|---|---|
friendly_name | str | Name of credential | Required |
Response¶
HTTP 204 NO CONTENT
(empty string)
Example request (Python)¶
import requests
import json
from pprint import pprint
data = {
"friendly_name": "Windows Hello"
}
url = "https://example.domain.tld/api/v1/webauthn/credentials/"
r = requests.delete(url, json=data, auth=("masteradmin2","long-auth_token-here"))
try:
pprint(r.json())
except:
print(r.text)
print(r.status_code)
Example response (text)¶
204