Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General Information

...

ServiceAPIMethod
urac/admin/group/addUsersPOST


Data Model: Groups

Workflow: Add Users To Group Flow

Input

...

NameSourceMandatoryTypeSpecial FormatDescription
tIdBody or QueryYESStringN/AThe Tenant ID
codeBodyYESStringN/Adefined in the form as groupCode
usersBodyfalseArrayN/Aarray of usernames

 

Output

...

Valid Response

Code Block
languagejs
titleValid Response Sample
{
	"result": true,
	"data": true
}

...

Code Block
languagejs
titleError Response Sample
{
    "result":false,
    "errors":{
        "codes":[600],
        "details":[
            {
                "code":600,
                "message":"Problem with the provided password"
            }
        ]
    }
}



Error Codes


 

Code
Description
600Database connection error


Example (CURL)

...

Request

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

...