Update current Password

Update the password of the current auth.


Method Uri Auth Permissions
PUT /v1/auth/password None none

Headers

The API requires a header Accept to be submitted with the request:

{
    "Accept": "application/json",
    "Authorization": "Bearer TOKEN"
}

Data constraints

{
    "password": NEW PASSWORD,
    "password_confirmation": NEW PASSWORD,
    "password_current": CURRENT PASSWORD
}

Success Responses

Condition : All required data provided is valid and added to the request body.

Code : 204 No Content

Content example : Response will reflect back the created message':

HTTP/1.1 204 No Content
Server: nginx/1.18.0 (Ubuntu)
Connection: close
Cache-Control: no-cache, private
Date: Thu, 29 Apr 2021 11:02:17 GMT
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58

Error Responses

Condition : If provided data is invalid or not added to the request body.

Code : 422 Unprocessable Entity

Content example :

{
    "message": "De opgegeven informatie bevat fouten.",
    "errors": {
        "password_current": [
            "Geef het huidige wachtwoord op"
        ],
        "password": [
            "Bevestig het nieuwe wachtwoord"
        ]
    }
}