Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

User → Update a user’s role in an organization.

AI-generated

Summary

Update a user's role within a specific organization by sending a JSON-formatted request body to the API endpoint for that user and organization.

Inputs

  • Org ID (required) — The unique identifier of the organization where the user's role will be updated.
  • User ID (required) — The unique identifier of the user whose role is being updated in the organization.
  • Body (required) — A JSON object representing the request body containing the role update details to apply to the user for the specified organization.
  • Options — Optional parameters including 'Raw Response' to determine if the full API response is returned instead of processing arrays into individual items.

Output shape

An object representing the updated user role data returned from the API for the specified organization and user.

If 'Raw Response' option is enabled, the full API response object is returned; otherwise, arrays in the response are split into separate output items.

Examples

Example 1: Update a user's role within an organization by specifying the organization ID, user ID, and providing a JSON body with role details.

Set 'Org ID' to the target organization's ID, 'User ID' to the target user's ID, and 'Body' to a JSON object with role information (e.g., { "roleId": 2 }). Optionally enable 'Raw Response' to receive the full API response.

Discussion