Remove User

DELETE /user
application/json

Body Required

  • email string Required

Responses

  • 200 application/json

    Successful Response

    Hide response attribute Show response attribute object
    • detail string

      Value is User removed.

  • 400 application/json

    Cannot find user

    Hide response attribute Show response attribute object
    • detail string

      Default value is Cannot find user.

  • 401 application/json

    Unauthorized

    Hide response attribute Show response attribute object
    • detail string

      Default value is Unauthorized.

  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
      • loc array[string | integer] Required
      • msg string Required
      • type string Required
DELETE /user
curl \
 -X DELETE http://localhost:5000/user \
 --cookie "fastapiusersauth=$API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"email":"string"}'
Request example
{
  "email": "string"
}
Response examples (200)
{
  "detail": "User removed"
}
Response examples (400)
{
  "detail": "Cannot find user"
}
Response examples (401)
{
  "detail": "Unauthorized"
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}