Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Organization → Create a role.

AI-generated

Summary

Create a new role within a specified organization by sending a JSON body with role details to the Pangolin API.

Inputs

  • Org ID (required) — The unique identifier of the organization where the role will be created.
  • Body (required) — A JSON object containing the details of the role to create, such as its name (required) and description.
  • Options — Optional settings including 'Raw Response' to return the full API response instead of parsing it into individual items.

Output shape

a single JSON object representing the created role or the full API response, depending on the 'Raw Response' option.

If 'Raw Response' is false or unset, the node outputs the parsed role data as a single item. If true, it outputs the full unparsed API response. Errors are returned in the same item when 'Continue On Fail' is enabled.

Examples

Example 1: Create a role named 'Manager' with a description within organization 'org123'.

Set 'Org ID' to 'org123', set 'Body' to {"name": "Manager", "description": "Manages team activities"}, and execute the operation.

Discussion