Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • PUT https://dev-ddb.fiz-karlsruhe.de/api/2/user/59ab798971240c9c3556e627864430a9/resetpassword


^ Back to top

...

US11 | Update user email

PUT

/{id}/email

User permission required

Request payload

Code Block
languagejs
themeMidnight
titleUser object
linenumberstrue
collapsetrue
{  
	"email": "changed_email_testuser@ddb.de",
    "confirmationLink": "http://www.test.de?token=|confirmationToken|&uid=|id|"
}

Response payload

Code Block
languagejs
themeMidnight
titleUser object
linenumberstrue
collapsetrue
{
    "id": "59ab798971240c9c3556e627864430a9",
    "nickname": "testuser",
    "status": "CHANGE_REQUEST",
    "surName": "surname is unknown",
    "email": "testuser@ddb.de",
    "created": "2024-03-08T09:23:53",
    "creatorId": "anonymous",
    "modified": "2024-03-08T10:20:51",
    "modifierId": "anonymous",
    "confirmationLink": "http://www.test.de?token=c7fd31ce-56c9-48c6-b045-075de6bead37&uid=59ab798971240c9c3556e627864430a9"
}

Status codes

  • 200 = Email change request done (pending to be confirmed using link)
  • 304 = Email could not changed
  • 400 = Bad Request
  • 401 = User not authorized to login
  • 403 = Authentication temporarily blocked
  • 404 = User not found
  • 423 = User is blacklisted
  • 428 = User has "unconfirmed" status
  • 500 = Internal server error

Example call(s)


^ Back to top

...