Adding new role with permission

Hi,

I am able to add a new role by using the below curl command:
curl --request POST --url http://localhost:8001/rbac/roles --header ‘content-type: application/json’ --data ‘{“name”:“read-only-status-api”}’

But I am unable to add the permission, I have tried as below :curl --request POST --url http://localhost:8001/rbac/roles --header ‘content-type: application/json’ --data ‘{“name”:“read-only-status-api”}’ --header ‘{ “Permissions”: { “actions”: [“read”] }, “endpoint”: ["/status"]}’

But the permissions are not getting added, could you please help me with the curl command to create a new role with action = read and endpoint = /status.

Thanks

Please reach out to Enterprise support for a faster resolution.