Register New User
Changed onProvide basic information to self-register for an account.
Note: The /register endpoint accepts the parameters in the body of the request. It does not accept them in the URL as a query string, because that isn't as secure. The input parameters should be included as a JSON object (in the body), as shown in the sample code on the right.
Request
- Base URLhttps://api.watttime.org
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"username": "freddo",
"password": "the_fr0g",
"email": "freddo@frog.org",
"org": "freds world"
}Response
Successful Response
Example response
{
"ok": "User created",
"user": "freddo"
}Changes
- breaking
added required request body
- warning
deleted the
queryrequest parameteremail - warning
deleted the
queryrequest parameterorg - warning
deleted the
queryrequest parameterpassword - warning
deleted the
queryrequest parameterusername
- breaking
- info
queryrequest parameterorglist-of-types was widened by adding typesnull - info
for the
queryrequest parameterorg, the type was generalized fromstringto no type - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info