General Information
...
Service | API | Method |
---|
urac | /admin/group/addUsers | POST |
Data Model: Groups
Workflow: Add Users To Group Flow
Input
...
Type: application/json
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 |
falseNO | Array | N/A | array of usernames |
Output
...
Valid Response
Code Block |
---|
language | js |
---|
title | Valid Response Sample |
---|
|
{
"result": true,
"data": true
} |
...
Invalid Response
Code Block |
---|
language | js |
---|
title | Error Response Sample |
---|
|
{
"result":false,
"errors":{
"codes":[600400],
"details":[
{
"code":600400,
"message":"ProblemDatabase with the provided passwordconnection error"
}
]
}
} |
Error Codes
600400 | Database connection error |
Example (CURL)
...
Request
Code Block |
---|
language | bash |
---|
title | Calling Add Users API |
---|
|
> CURL -X POST http://127.0.0.1:4000/urac/admin/group/addUsers -d 'groupCode=bronze&users[]=user1&users[]=user2' |
...