Create User

This request creates a new user.

Endpoints

  •   POST /users

Remark

Checks if the user name already exists and also takes care of securely saving the password.

Example request


 POST https://api.paramate.trinckle.com/users
 -H Authorization: Bearer eyJhbGciOiJIUzI1Ni ... 3H8gC1k2DIKNEeJpb72yvmdY
 -H Content-Type: application/json
 {
   "userName": "TestUser",
   "password": "t35tp@55w0rd",
  }

 

Example response


 HTTP/1.1 200 OK
 {
     "UUID": "e14390b7-c874-41d8-a65e-6d9de482a336",
  }
 

Header

Authorization

Bearer {token} (User authorization needed with Admin rights)

Response

A JSON object with the ID of the user

see format in the example below

See also