Send init token

Send the user an initial token that they can use when they set their initial password

Request
path Parameters
username
required
string
Responses
200

OK

400

Bad Request. The request parameters (or body) were malformed or invalid. Fix the issues with the request and try again.

404

Not Found. The specified resource (or resource referred to by id) was not found

500

Internal Server Error. An unexpected error has occurred. This may be due to a transient error. Retry the request and if the issue persists, please contact support.

post/user-service/v1/user/initToken/{username}
Request samples
curl -i -X POST \
  'http://localhost:8081/user-service/v1/user/initToken/{username}'
Response samples
application/json
{
  • "message": "Field \"name\" cannot be null",
  • "status": 400,
  • "error": "Bad Request",
  • "timestamp": "2023-12-13T19:02:31.5897497",
  • "path": "/user-service/v1"
}