Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page Properties
hiddentrue

Status

Status
colourYellow
titlefor review

Approver

Pavel Shkadzko

Request

Key

Description

email

The new user's email address (used as login username).

password

The new user's password (at least 6 characters long).

In order to create a new user, submit a POST request to /api/users.

Code Block
languagejson
//creating a new user

curl -v -X POST --data '{"email":"some_user@example.com", "password":"supersecret"}'
    -H 'Content-Type: application/json'
    -H 'Accept: application/json'
    -H 'Authorization: BEARER 74c1e7fe-e464-451f-a6eb-8f0998c46ff6'
    'https://user.gini.net/api/users'
Request

...

Key

...

Description

...

email

...

The new user's email address (used as login username).

...

password

...

'

...

If the request entity is invalid (missing field(s), password < 6 characters) or a user with that email address already exists, the API responds with 400 Bad Request.

...