MailMasker API
Claude Code
Users and roles

Give a role a permission

POST/api/v1/admin/roles/:role/permissions/:permission

Who can use this: Site adminsAs Markdown

Every account with the role gets the permission. Giving a role a permission it already has changes nothing.

Parameters

NameWhereWhat it is
role required path The role's name.e.g. auditor
permission required path The permission's name, from the permission list.e.g. audit.view

Good to know

  • An unknown role or permission answers 404.