General Information
...
Service | API | Method |
---|
urac | /admin/group/addUsers | POST |
Data Model: %Link to Data Model% Groups
Workflow: %Link to Architecture Page% Add Users To Group Flow
Input
...
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|
| ...
| defined in the form as groupCode |
users | Body | NO | Array | N/A | array of usernames |
Output
...
Valid Response
Code Block |
---|
language | js |
---|
title | Valid Response Sample |
---|
|
{
"result": true,
"data": {
"..."
}
} |
...
Invalid Response
Code Block |
---|
language | js |
---|
title | Error Response Sample |
---|
|
{
"result":false,
"errors":{
"codes":[400],
"details":[
{
"code":400,
"message":"ProblemDatabase with the provided passwordconnection error"
}
]
}
} |
Error Codes
...
Request
Code Block |
---|
language | bash |
---|
title | Calling YOUR Add Users API |
---|
|
> CURL -X POST http://127.0.0.1:4000/.../urac/admin/group/addUsers -d 'groupCode=bronze&users[]=user1&users[]=user2' |
Response
Code Block |
---|
language | js |
---|
title | YOUR Add Users API response |
---|
|
{
"result": true,
"data": {
"_id": "57063608622c47b5c097d19b",
"..."
}true
} |