Deletes the current user. Requires a logged in user.
{warning} A user must have his/her account verified
Method | Uri | Auth | Permissions |
---|---|---|---|
DELETE |
/v1/profile |
Bearer JWT-Token |
none |
The API requires a header Accept
and Authorization
to be submitted with the request:
{
"Accept": "application/json",
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M..."
}
Condition : All required data provided is valid and added to the request body.
Code : 204 No-content
Condition : If a user has not logged in or header data is incomplete.
Code : 401 Unauthorized
Content example :
{
"message": "You must log in to do that.",
"errors": [
"Unauthenticated."
]
}
Code : 403 Forbidden
Content example :
{
"message": "Your email address is not verified."
}