General Information
...
Service | API | Method |
---|---|---|
urac | /admin/group/addUsers | POST |
Data Model: Groups
Workflow: Add Users To Group Flow
Input
...
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
tId | Body or Query | YES | String | N/A | The Tenant ID |
code | Body | YES | String | N/A | defined in the form as groupCode |
users | Body | false | Array | N/A | array of usernames |
Output
...
Valid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": true } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result":false, "errors":{ "codes":[600], "details":[ { "code":600, "message":"Problem with the provided password" } ] } } |
Error Codes
Code | Description |
---|---|
600 | Database connection error |
Example (CURL)
...
Request
Code Block | ||||
---|---|---|---|---|
| ||||
> CURL -X POST http://127.0.0.1:4000/urac/admin/group/addUsers -d 'groupCode=bronze&users[]=user1&users[]=user2' |
...