General Information
...
Service | API | Method |
---|---|---|
urac | admin/group/add | 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 Id of the tenant where this group is added |
tCode | Body or Query | YES | String | N/A | the code of the tenant |
code | Body | YES | String | N/A | |
name | Body | YES | String | N/A | |
description | Body | YES | String | N/A |
Output
...
Valid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": { "..." }true } |
Invalid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result":false, "errors":{ "codes":[400421], "details":[ { "code":400421, "message":"ProblemGroup code withalready theexists. providedChoose passwordanother" } ] } } |
Error Codes
Code | Description | 400 | Database Error
---|---|
421 | Group code already exists. Choose another |
600 | Database connection error |
611 | invalid tenant id provided |
Example (CURL)
...
Request
Code Block | ||||
---|---|---|---|---|
| ||||
> CURL -X POST http://127.0.0.1:4000/.../urac/admin/group/add?tId=5551aca9e179c39b760f7a1a&tCode=DBTN -d 'code=gold&name=Gold&description=Group Description' |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": { "_id": "57063608622c47b5c097d19b", "..." }true } |