PUT - /product/acl/scope/api
General Information
Service | API | Method | Data Model | Workflow | Group |
---|---|---|---|---|---|
multitenant | /product/acl/scope/api | PUT | N/A | Product |
DescriptionÂ
Update the ACL of a specific api in the product scope
Input
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
productCode | Query, Body | YES | String | Â | The product code |
env | Query, Body | YES | Object | Â | Environment code |
acl | Body | YES | Array of Object | N/A | Â |
ACL Example
{
"acl": [
{
"service": "urac",
"version": "3",
"group": "My account guest",
"method": "get",
"api": "/password/forgot",
"envs": {
"dev": true
},
"access": {
"dev": false
},
"restriction": {
"dev": true
},
},
{
"service": "urac",
"version": "3",
"group": "My account guest",
"method": "get",
"api": "/emailToken",
"envs": {
"dev": true
},
"access": {
"dev": true
},
"restriction": {
"dev": true
},
},
{
"service": "urac",
"version": "3",
"group": "My account guest",
"method": "get",
"api": "/validate/changeEmail",
"envs": {
"dev": true
},
"access": {
"dev": true
},
"restriction": {
"dev": true
},
}
]
} |
Output
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS responseÂ
Valid Response
{
result: true,
data: 'Product Package Acl Updated!'
} |
Invalid Response
Response schema
Follow this link to check out the response JSON Schema
SOAJS Error Codes
Code | Description |
---|---|
Business logic required data are missing | |
Unable to find products | |
Unable to find package | |
This record is locked. You cannot modify or delete it | |
Model error: + %model_error% |
Â