Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

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

AI-generated

Summary

Update a user's role in an organization by sending a POST request to the API endpoint /org/{orgId}/user/{userId} with a JSON body containing the updated role information.

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 within the organization.
  • Body (required) — A JSON object representing the request body for the POST /org/{orgId}/user/{userId} endpoint, which specifies the role update details.
  • Options — Optional settings, including 'Raw Response' to return the full API response instead of splitting arrays into individual items.

Output shape

a single JSON object representing the response from the API after updating the user's role in the organization

If 'Raw Response' option is enabled, the full API response is returned; otherwise, arrays are split into individual items. Errors are returned with an 'error' field in case of failure and if 'Continue on Fail' is enabled.

Discussion