EdgeCore version: 4.3.0
Method
PUT /public/roles/{roleName}/content
Used to assign pages to a role so that they appear in the system menu when the role is logged in.
Parameters
| Name | Type | Description | Mandatory |
roleName |
string | Name of the role for which you want to add permissions | Yes |
content[] |
Array of strings | Content path that will replace role content | Yes |
cURL example
curl --location --request PUT 'http://localhost:8080/public/roles/Editor/content' \ --header 'edgeApiKey: YWRtaW5AZGVmYXVsdHx3IDNHe2tMZTYhMkZkO3J3cipDaSZUdio5' \ --form 'content[]=/Content Menu' \ --form 'content[]=/System Menu/Content/Connections' \ --form 'content[]=/System Menu/Content/Pipeline' \ --form 'content[]=/System Menu/Content/Pages' \ --form 'content[]=/System Menu/Content/Provisioning'
Example Response
[
"/Content Menu,
"/System Menu/Content/Provisioning",
"/System Menu/Content/Pipeline",
"/System Menu/Content/Pages",
"/System Menu/Content/Connections"
]
HTTP Response
| Code | Status | Description |
| 200 | OK | The request has succeeded. |