slug when sent, otherwise from name (lowercased and hyphenated). The change is recorded in the permissions audit log.users-roles-create permission.authorization: ********************{
"name": "Seguridad",
"permissions": [
"65f1c2a9e4b0a1b2c3d4e5f9",
"65f1c2a9e4b0a1b2c3d4e5fa"
]
}curl --location 'https://qa-api.kiolinkapp.com/v1/roles' \
--header 'authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Seguridad",
"permissions": [
"65f1c2a9e4b0a1b2c3d4e5f9",
"65f1c2a9e4b0a1b2c3d4e5fa"
]
}'{
"_id": "65f1c2a9e4b0a1b2c3d4e5bb",
"name": "Seguridad",
"slug": "seguridad",
"permissions": [
"65f1c2a9e4b0a1b2c3d4e5f9",
"65f1c2a9e4b0a1b2c3d4e5fa"
],
"__v": 0
}