No Results
Set Role Content

EdgeCore version: 4.3.0


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.


Name Type Description Mandatory
string Name of the role for which you want to add permissions Yes
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.

Terms | Privacy