Skip to content

Api Users Post

Carlos Badenes edited this page Mar 31, 2016 · 1 revision

Create User Instance

A new user will be created. The only information required is: email. Optionally, you can also include your name, surname and orcid.

If all went well, a response containing the authorization token (UUID objects according to RFC 4122) and the URI of the user will be answered.

Request

POST http://zavijava.dia.fi.upm.es:8888/api/users/
Content-Type: application/json
{
    "name": "François",
    "surname": "Sautereau",
    "email": "[email protected]",
    "orcid": "1111-2222-3333-4444"
}
  • curl:
curl -i -X POST -d "{ 'email': '[email protected]'}" http://zavijava.dia.fi.upm.es:8888/api/users

Response

201 Created
{
    "token": "70b88ce0-9cb8-23e5-62dd-0002a4d3c52c",
    "uri": "users/11111111-2222-3333-4444-555555555555"
}
Clone this wiki locally