Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Resource → Update a resource.

AI-generated

Summary

Update the details of an existing Resource by specifying its resource ID and providing the updated data in JSON format as the request body.

Inputs

  • Resource ID (required) — The unique identifier of the resource to update.
  • Body (required) — A JSON object containing the properties and values to update for the resource.
  • Options.Raw Response — Choose whether to return the full raw response from the API instead of processing the response into individual items.

Output shape

A single JSON object representing the updated resource, or the full raw response if 'Raw Response' option is enabled.

If 'Raw Response' is set to true, the entire API response is returned as-is. Otherwise, the response is parsed: if it is an array, each element is output as a separate item, else the single object is output. Errors during execution yield an error object in output if 'Continue On Fail' is enabled; otherwise, execution stops with an error.

Examples

Example 1: Update a resource with new configuration

Set 'Resource ID' to the specific resource identifier, specify the desired attributes and their new values in the 'Body' field as JSON, execute the operation to apply these changes.

Discussion