Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Rule → Apply a rule to a resource.

AI-generated

Summary

Send a PUT request to apply a rule to a specified resource by its ID, updating or creating the rule configuration for that resource.

Inputs

  • Resource ID (required) — The unique identifier of the resource to which the rule will be applied.
  • Body (required) — JSON object representing the rule details, including required fields such as 'action', 'match', 'value', 'priority', and 'enabled' to configure the rule for the resource.
  • Options — Additional optional settings such as 'Raw Response' which controls whether to return the full API response or split arrays into individual items.

Output shape

the JSON response from the API after applying the rule, typically a single object representing the result of the PUT operation

If 'Raw Response' is false (default), objects or arrays in the response may be split into individual output items. If true, the full API response is returned in one item.

Discussion