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/package/acl/env

PUT

Products

N/A

Product

Description 

This API updates the package under a product that both have codes that accordingly match the ones sent in the query.Update product package ACL by env

Input

...

Code Block
Type: application/json

...

Name

Source

Mandatory

Type

Special Format

Description

id

Query

YES

String

N/A

The product id

code

Query

YES

String

The Length is 4 - 5

The product code

acl

Body

YES

Object

Part of ACL Schema

Package ACL - Check the example below

env

Query

YES

String

N/A

Environment code

type

Query

NO

String

granular

Type of Acl (API group or granular)

ACL Example of type API Group

Code Block
  {
 	"acl": {
 		"oauth": [{
 			"version": "1",
 			"get": [
 				"Guest"
 			],
 			"post": [
 				"Guest",
 				"Tokenization"
 			],
 			"delete": [
 				"Tokenization"
 			]
 		}]
 	}
 }


ACL Example of type Granular

Code Block
  {
  	"acl": {
  		"oauth": {
  			"1": {
  				"access": true,
  				"apisPermission": "restricted",
  				"post": {
  					"apis": {
  						"/token": {
  							"group": "Guest",
  							"access": false
  						}
  					}
  				}
  			}
  		}
  	}
  }

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 %package_code% updated successfully' 
}

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%

...