...
Service | API | Method | Data Model | Workflow |
---|
urac | /admin/groupgroups/packages | PUT | Groups |
|
Description
This API updates the packages of all the groups in groups array sent in the request body.
...
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|
groups | Body | YES | Object | Includes one of id or code arrays | Groups object |
| One of the following should exist under the groups object: Name | Mandatory | Type | Special Format | Description |
---|
ids | YES | Array | Array of Strings | User ID | codes | YES | Array | Array of Strings |
| Groups
|
packages | Body | YES | Array | Array of Objects | Packages |
|
Name | Type | Description |
---|
product | String | Product Code | packagepackages | String | Package CodeArray of Strings | An array of Package Codes |
|
Output
...
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
Valid Response
Code Block |
---|
language | js |
---|
title | Valid Response Sample |
---|
linenumbers | true |
---|
collapse | true |
---|
|
{
result: true,
data: 2true
} |
Invalid Response
Code Block |
---|
language | js |
---|
title | Error Response Sample |
---|
linenumbers | true |
---|
collapse | true |
---|
|
{
"result":false,
"errors":{
"codes":[602],
"details":[
{
"code":602,
"message":"Model error: + %model_error%"
}
]
}
} |
Response schema
Follow this link to check out the response JSON Schema
SOAJS Error Codes
| |
---|
400 | Business logic required data are missing |
602 | Model error: + %model_error% |