curl --request POST \
--url https://api.example.com/api/roles \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'organization-id: <organization-id>' \
--data '
{
"roleName": "admin",
"roleDescription": "Administrator",
"permissions": [
{
"subject": "subject",
"ability": "read",
"value": true
}
]
}
'