-
Notifications
You must be signed in to change notification settings - Fork 1
Api Users Post
Carlos Badenes edited this page Mar 31, 2016
·
1 revision
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.
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
201 Created
{
"token": "70b88ce0-9cb8-23e5-62dd-0002a4d3c52c",
"uri": "users/11111111-2222-3333-4444-555555555555"
}
work supported by the European Community's Seventh Framework Programme (FP7-ICT-2013-8.1) under grant agreement no: 611383. For further information please see http://DrInventor.eu