docs
  1. Resources
  2. Permissions
  3. Update Permissions

Update Permissions

1.0
OpenAPI 3.0.0

This is the specification of the SCAYLE Panel Add-on API.

For more information about how to interact with the Add-on API, you can read the respective Developer Guide. Authentication is done via X-Add-On-Name and the X-Access-Token HTTP Header.

The API enforces a rate limit of 100 requests per minute.

The API Token can be generated in the configured SCAYLE Panel Add-on.

Server:https://{tenant-space}.panel.scayle.cloud
Client Libraries

Permissions

​

Update Permissions

​

Update permissions associated to the add-on

Headers

  • The X-Access-Token is used to authenticate the API-request.

  • The Add-on name, which uniquely identifies your Add-on within the system

  • The Accept-Language request HTTP header indicates the natural language and locale that the client prefers.

Body·

application/json
  • Array containing all the permissions that are going to be assigned to the add-on. These values will override the existing ones

Responses

  • Successful response

  • application/json
Request Example for put/api/v1/external/add-ons/permissions
<?php

$url = 'https://{{tenant-space}}.panel.scayle.cloud/api/v1/external/add-ons/permissions';

$headers = [
  'Content-Type: application/json',
  'Accept: application/json',
  'X-Add-On-Name: {{YOUR-ADD-ON-IDENTIFIER}}',
  'X-Access-Token: {{YOUR_ACCESS_TOKEN}}',
];

$data = [
  'permissions' => [
    'add-on-key__section_name__action',
    'my-add-on__product__read',
    'my-add-on__product__update',
    'my-add-on__product__delete',
  ]
];

$payload = json_encode($data);

$curl = curl_init();
curl_setopt_array($curl, [
  CURLOPT_URL => $url,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => $headers,
  CURLOPT_POSTFIELDS => $payload,
]);

$response = curl_exec($curl);

if (curl_errno($curl) || $response === false) {
  echo "cURL Error: " . curl_error($curl);
} else {
  echo $response;
}

curl_close($curl);

No Body

Models

​

Last updated: September 14, 2026