/api/users/create
Creates new user.
This resource is available only for Global admin or Domain admin.
Resource Information
Resource URL | |
---|---|
HTTP Method | POST |
Request Parameters
Parameter | Detail | Example | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data | Form contents to submit in following JSON format:
| { "domain_id": 123, "username": "myusername", "email": "myusername@example.com", "firstName": "John", "middleName": "Middle", "lastName": "Doe", "info": "I'm pretty cool", "timeZone": "Europe/Prague", "locale": "cs", "roles": [ { "role": "DATA_ADMIN" }, { "role": "SCHEMA_ADMIN" } ], "groups": [ { "id": "56", "name": "My User Group nr.1" } ], "parameters": [ { "key" : "nameofparam", "value" : "valueofparam" } ] } |
Sample Request / Response
Using curl
:
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "data={\"domain_id\":123,\"username\":\"myusername\",\"email\":\"myusername@example.com\",\"firstName\":\"John\",\"lastName\":\"Doe\"}" https://service.belladati.com/api/users/create
When the form has been submitted successfully, the server replies with an HTTP status code of 200 and a body that contains ID of new user.
Overview
Content Tools