User

User object:

  • id – integer
  • name – string
  • avatar_url – string

Email object:

  • address – string
  • verified – boolean
Role Permission
Owner update

Me

GET /api/users/me

returns the currently logged in user object, with an additional attribute authenticated

if the user is not logged in, all attributes will be null

PUT /api/users/me

requires permission: update

update userdata, returns updated user object

Request JSON Object:
 
  • name (optional) – string, length ≤ 100

User

The user with the id

GET /api/users/{id}

returns the user object

PUT /api/users/{id}

requires permission: update

update userdata, returns updated user object

Request JSON Object:
 
  • name (optional) – string, length ≤ 100

User-emails

GET /api/users/me/emails

return the list of email objects

{
    "data": [email objects...]
}
POST /api/users/me/emails

requests the server to add a email to the current user

Request JSON Object:
 
  • address – string, 3 ≤ length ≤ 254