Add Users To Group

General Information


ServiceAPIMethod
urac/admin/group/addUsersPOST


Data Model: Groups

Workflow: Add Users To Group Flow

Input


Type: application/json
NameSourceMandatoryTypeSpecial FormatDescription
codeBodyYESStringN/Adefined in the form as groupCode
usersBodyNOArrayN/Aarray of usernames


Output


Valid Response

Valid Response Sample
{
	"result": true,
	"data": true
}


Invalid Response

Error Response Sample
{
    "result":false,
    "errors":{
        "codes":[400],
        "details":[
            {
                "code":400,
                "message":"Database connection error"
            }
        ]
    }
}



Error Codes



Code
Description
400Database connection error


Example (CURL)


Request

Calling Add Users API
 > CURL -X POST http://127.0.0.1:4000/urac/admin/group/addUsers -d 'groupCode=bronze&users[]=user1&users[]=user2' 

Response

Add Users API response
{
	"result": true,
	"data": true
}