Versions Compared

Key

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

...

^ Back to top

...

US11 | Update user email

PUT

/{id}/email

User permission required

Request payload

...


^ Back to top

...

US12 | Update user metadata

PUT

/{id}

User permission required

Request payload

Code Block
languagejs
themeMidnight
titleUser object
linenumberstrue
collapsetrue
{
    "id": "793feaf72b465c17be1e2d86c7a0a057",
    "nickname": "testuser-ri",
    "status": "CONFIRMED",
    "surName": "CHANGING THE SURENAME",
    "email": "testuser-ri@ddb.de",
    "created": "2024-04-30T09:47:09",
    "creatorId": "anonymous",
    "modified": "2024-04-30T09:47:10",
    "modifierId": "anonymous"
}

Response payload

Code Block
languagejs
themeMidnight
titleUser object
linenumberstrue
collapsetrue
{
   "id":"793feaf72b465c17be1e2d86c7a0a057",
   "nickname":"testuser-ri",
   "status":"CONFIRMED",
   "surName":"CHANGING THE SURENAME",
   "email":"testuser-ri@ddb.de",
   "created":"2024-04-30T09:47:09",
   "creatorId":"anonymous",
   "modified":"2024-04-30T10:00:00",
   "modifierId":"793feaf72b465c17be1e2d86c7a0a057"
}

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

...