Delete auth user

Remove a basic authentication user from a site.


DELETE/api/servers/{server}/sites/{id}/auth-users/{authUserId}

Delete an auth user

This endpoint allows you to delete a basic authentication user from a site. This will remove the authentication protection for the associated path or entire site.

Request

DELETE
/api/servers/{server}/sites/{id}/auth-users/{authUserId}
curl -X DELETE "https://ploi.io/api/servers/{server}/sites/{id}/auth-users/{authUserId}" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": {
    "id": 1,
    "name": "admin",
    "path": "/wp-admin",
    "created_at": "2024-01-15 10:30:00"
  }
}