Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General Information

...

Service

API

Method

Data Model

Workflow

Group

multitenant

/product/acl/scope/acl/api

PUT

Products

N/A

Product

Description 

Update the ACL of a specific api in the product scope

Input

...

Code Block
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

Code Block
{
                "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

Code Block
{ 
	result: true,
  	data: 'Product Package Acl Updated!' 
}

Invalid Response

Code Block
{
    "result":false,
    "errors":{
        "codes":[460],
        "details":[
            {
                "code":460,
                "message":"Unable to find products"
            }
        ]
    }
}

Response schema

Follow this link to check out the response JSON Schema

SOAJS Error Codes

...


Code

Description

Code Block
400

Business logic required data are missing

Code Block
460

Unable to find products

Code Block
461

Unable to find package

Code Block
500

This record is locked. You cannot modify or delete it

Code Block
602

Model error: + %model_error%

...