...
...
General Information
...
Service | API | Method | Data Model | Workflow | Group |
---|---|---|---|---|---|
multitenant | /product/scope | PUT |
Data Model:
...
Products | N/A | Product |
Description
Update product ACL scope
Input
...
Type: application/json
...
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
id | Query | YES | String | N/A | The product id |
Scope | Body |
YES | Object |
Scope Schema |
Product Scope |
Output
- Check the example below |
Scope Example
Code Block | |||
---|---|---|---|
|
...
{
}
Invalid Response
...
language | js |
---|---|
title | Error Response Sample |
...
| |||||
"scope": { "acl": { "dashboard": { "multitenant": { "1": { |
...
"access": false, " |
...
get": [ { |
...
"/product": { "access": false }, "group": 'Product' } ] }, |
...
"2.1" : { "access": false, "get": [ { "/product": { " |
...
access": false }, " |
...
group": |
...
'Product' } ] } } } |
...
Code
...
Description
...
426
...
460
...
Unable to find products
...
466
...
475
...
Unable to remove product record
...
477
...
Invalid product code provided
...
500
...
This record is locked. You cannot modify or delete it
Example (CURL)
Request
...
language | bash |
---|---|
title | Calling List Products API |
...
}
} |
Output
...
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
Valid Response
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
result: true,
data: true
} |
Invalid Response
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "result":false, "errors":{ "aclcodes": {},[460], "scopedetails":[ {}, } |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ { "resultcode": true,460, "datamessage":"Unable to [find products" { } ] } ] }} } |
Code | Description |
---|---|
400 | Business logic required data are missing |
460 | Unable to find products |
500 | This record is locked. You cannot modify or delete it |
602 | Model error: + %model_error% |