/api/groups/
Creates new user group.
This resource is available only for Global admin or Domain admin.
Resource Information
Request Body
Content-Type | application/json |
name | User Group name | description | (Optional) User Group description | defaultDashboard | Sets Dashboard ID on load | reportAdmin | Sets report admin role | datasetAdmin | Sets DataSet Admin role |
|
{
"name": "REST Group 1 Edited",
"description": "Rest group description edited",
"defaultDashboard" : 2,
"reportAdmin": false,
"datasetAdmin": false
}
|
|
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\"" -H "Content-Type: application/json" -d "data={ \"name\": \"REST Group 1 Edited\", \"description\": \"Rest group description edited\", \"defaultDashboard\" : 2, \"reportAdmin\": false, \"datasetAdmin\": false}" https://service.belladati.com/api/groups/
|
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 group.