Mautic Advanced icon

Mautic Advanced

Consume Mautic API with advanced features

Role → Create

AI-generated

Summary

Create a Mautic role with the supplied name and any configured description, admin status, publication status, or raw permissions.

Inputs

  • authentication — Choose Credentials or OAuth2 authentication.
  • name (required) — Name for the role.
  • additionalFields.description — Description of the role.
  • additionalFields.isAdmin — Whether the role has full administrative access; defaults to false.
  • additionalFields.isPublished — Whether the role is enabled; defaults to true.
  • additionalFields.rawPermissions — JSON object defining role permissions, for example {"email:emails":["viewown","viewother"]}; defaults to an empty object.

Output shape

A single role record returned by Mautic.

The provided source pack omits function bodies for the role operation, so the exact response envelope and handling of optional fields cannot be determined from the source shown.

Examples

Example 1: Create a published role with limited email access

Set Name to Marketing Reviewer, leave Is Admin off, and supply the needed permissions in Raw Permissions (JSON).

Links

Discussion