19th Ave New York, NY 95822, USA

Members management

POST /memberS

Create a new user link to your team.
Only the “adminitrator” can create a new user.
The user will be link to the team used in the login process.
When the account is made, the default status is “pending” (ID 1). The user will receiv a mail with a link to validated his email. When the validation is done, the status will change the “enable” (ID 2) and the user will be able to use his account.
Security :

need Bearer Access-Token from login

  • bearer : string
    exemple : bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6ODA4MFwvYXBpXC9sb2dpbiIsImlhdCI6MTY0NTA4ODEzNSwiZXhwIjoxNjQ1MDkxNzM1LCJuYmYiOjE2NDUwODgxMzUsImp0aSI6IlhEQ1pHeHRKZjJGQmJmUVQiLCJzdWIiOiI0NjE5N2FlNi0xMjMxLTQyNWUtYWYxZC0wYTA0NGQxYWEwM2YiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.KoVSQxdygnweKYp-PInhXEjnhGH4O0lY8u2ZDJaPCEo
Parameters :

/

Request Body :
  • Type : application/json
  • Schéma :
    email : string
    exemple : john.doe@gmail.com
    name : string
    exemple : John Doe
    password : string
    exemple : 123456
    role : integer
    exemple : 1 (see security section)
Responses :

Type : application/json

  • 201
    Schéma :
    status : integer
    exemple : 1 (see security section)
    email : string
    exemple : john.doe@gmail.com
    name : integer
    exemple : John Doe
    id : integer
    exemple : 1
  • 401
    Schéma :
    – Unauthorized
  • 402
    Schéma :
    – status : error
    – message : name of field and error
    exemple : {“email”: [“The email has already been taken.”]}

PUT /memberS/{id}

Update a member
Only the “adminitrator” can update a new user.
Update a member is only possible when the status is “enabled” (ID 2) or “disabled” (ID 3).
If the administrator change the email, the status will be “pending” (ID 1) and the user will receiv a mail with a link to validated his email. When the validation is done, the status will change the “enable” (ID 2) and the user will be able to use again his account.

Security :

need Bearer Access-Token from login

  • bearer : string
    exemple : bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6ODA4MFwvYXBpXC9sb2dpbiIsImlhdCI6MTY0NTA4ODEzNSwiZXhwIjoxNjQ1MDkxNzM1LCJuYmYiOjE2NDUwODgxMzUsImp0aSI6IlhEQ1pHeHRKZjJGQmJmUVQiLCJzdWIiOiI0NjE5N2FlNi0xMjMxLTQyNWUtYWYxZC0wYTA0NGQxYWEwM2YiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.KoVSQxdygnweKYp-PInhXEjnhGH4O0lY8u2ZDJaPCEo
Parameters :
  • Schéma :
    id : integer
    exemple : 1
Request Body :
  • Type : application/json
  • Schéma :
    email : string
    exemple : john.doe@gmail.com
    name : string
    exemple : John Doe
    password : string
    exemple : 123456
    role : integer
    exemple : 1 (see security section)
    status : integer
    exemple : 2 (see security section)
Responses :

Type : application/json

  • 200
    Schéma :
    status : integer
    exemple : 1 (see security section)
    email : string
    exemple : john.doe@gmail.com
    name : integer
    exemple : John Doe
    id : integer
    exemple : 1
  • 401
    Schéma :
    – Unauthorized
  • 402
    Schéma :
    – status : error
    – message : name of field and error
    exemple : {“email”: [“The email has already been taken.”]}
Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.