Calagopus icon

Calagopus

Interact with the Calagopus API

Actions343

Admin Roles → Update

AI-generated

Summary

Update an existing admin role by specifying its UUID and sending patch data in the request body to modify the role's properties.

Inputs

  • Role UUID (required) — The unique identifier of the role to update.
  • Query Parameters JSON — Optional query parameters as a JSON object to send with the request.
  • Body Mode — Format of the request body: JSON object, raw text, or none.
  • Body JSON — JSON object containing the data fields to update on the admin role (used when Body Mode is JSON).
  • Raw Body — Raw plain text to send as the request body (used when Body Mode is Raw Text).
  • Additional Options — Additional request options including ignoring HTTP status errors, returning the full response, and setting a request timeout.

Output shape

a list of JSON objects, each representing the updated role data or an error if failed

Returns the API response body parsed to JSON by default, but can return full HTTP response including status and headers if specified. Supports processing multiple items in batch.

Examples

Example 1: Update an admin role's name and permissions by providing a JSON body with the changes using the Role UUID to identify the role.

Set Resource to 'Admin Roles', Operation to 'Update', input the Role UUID, select Body Mode 'JSON', and provide the update fields in Body JSON. Optional query parameters and additional options may be added as needed.

Links

Discussion