General Information
...
Service | API | Method |
---|---|---|
urac | /admin/group/edit | GETPOST |
Data Model: %Link to Data Model% Groups
Workflow: %Link to Architecture Page%
...
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
gId | Query | YES | String | N/A | The Group ID |
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":[400417], "details":[ { "code":400417, "message":"ProblemInvalid withgroup theid provided password" } ] } } |
Error Codes
Code | Description | 400 | Database Error
---|---|
417 | Invalid group id provided |
418 | Unable to edit Group. |
Example (CURL)
...
Request
Code Block | ||||
---|---|---|---|---|
| ||||
> CURL -X POST http://127.0.0.1:4000/.../urac/admin/group/edit?gId=5 -d 'name=Gold Group&description=Group Description' |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": { "_id": "57063608622c47b5c097d19b", "..." }true } |