Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Resource → Grant users access to a resource, replacing any existing ones.

AI-generated

Summary

Replace all users who have access to a specified resource by submitting a new list of user IDs to grant access, overwriting any existing access entries.

Inputs

  • Resource ID (required) — The unique identifier of the resource for which user access will be granted or replaced.
  • Body (required) — A JSON object containing a 'userIds' array specifying the user IDs to grant access to the resource, replacing any existing users.
  • Options — Additional options such as 'Raw Response' to control the output format.

Output shape

A single response object representing the result of the access update request, or an array of items if the API returns multiple entries and the 'Raw Response' option is disabled.

The response format can be toggled with the 'Raw Response' option to either return the entire API response as a single item or split arrays into individual items. Errors will be returned per item if 'Continue On Fail' is enabled.

Examples

Example 1: Replacing user access

Set Resource ID to target the desired resource, provide a JSON body with the array of new user IDs, and execute to replace previous access users.

Discussion