Shared
Permission
Get Permission By Role

Get Permissions By Role

Returns the permission list for a given role.

Overview

  • Method: GET
  • Path: /shared/permission/get-permission-by-role/<role>
  • Tags: shared

Parameters

role (path)

  • Type: string
  • Required: Yes
  • Description: role parameter

Request Body

No request body required.

Responses

200

Successful response

Content Type: application/json

{
  "data": "string",
  "name": "string",
  "description": "string",
  "created_at": "string",
  "updated_at": "string"
}

400

Bad Request

Content Type: application/json

{
  "error": "string",
  "details": [
    {}
  ]
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X GET \
  https://api.pillexa.com/shared/permission/get-permission-by-role/<role> \
  -H "Content-Type: application/json" \