Calagopus icon

Calagopus

Interact with the Calagopus API

Actions343

Admin Roles → Create

AI-generated

Summary

Create a new admin role by sending a POST request to the /api/admin/roles endpoint of the Calagopus API.

Inputs

  • Query Parameters JSON — Optional JSON object representing any query parameters to include in the request URL.
  • Body Mode (required) — Format of the request body: JSON (default), raw text, or none.
  • Body JSON — The JSON object representing the admin role data to create, used when Body Mode is JSON.
  • Raw Body — Plain text request body, used when Body Mode is Raw.
  • Additional Options — Collection of optional settings such as ignoring HTTP status errors, returning full API response (status, headers, and body), and request timeout in milliseconds.

Output shape

a list of JSON objects

Each item corresponds to one input item, containing the API's response parsed into an object. Errors are returned in the JSON under an 'error' key if "Ignore HTTP Status Errors" is enabled; otherwise, execution halts on errors.

Examples

Example 1: Create a role with specific permissions

Set Body Mode to JSON and provide the admin role properties as a JSON object in Body JSON.

Links

Discussion