General Information
...
Service | API | Method |
---|---|---|
urac | /admin/group/addUsers | POST |
Data Model: %Link to Data Model% Groups
Workflow: %Link to Architecture Page%
...
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 } |
Invalid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result":false, "errors":{ "codes":[400600], "details":[ { "code":400600, "message":"Problem with the provided password" } ] } } |
Error Codes
Code | Description |
---|---|
400600 | Database Errorconnection 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' |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": { "_id": "57063608622c47b5c097d19b", "..." }true } |