Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Organization → Update a resource.

AI-generated

Summary

Update an existing resource within a specific organization and site by sending a JSON request body with the updated properties.

Inputs

  • orgId (required) — The ID of the organization to which the resource belongs.
  • siteId (required) — The ID of the site within the organization where the resource is located.
  • siteResourceId (required) — The ID of the specific resource at the site to update.
  • body (required) — A JSON object containing the properties to update for the resource, such as name, protocol, proxyPort, destinationPort, destinationIp, and enabled status.
  • options.rawResponse — Boolean flag to determine if the full API response should be returned instead of processed items.

Output shape

a single JSON object representing the updated resource or the full API response if rawResponse is enabled

If rawResponse is false or omitted, the response object will be parsed and returned as a single item. If rawResponse is true, the complete raw response is returned. Errors will stop execution unless 'Continue On Fail' is enabled, in which case they are returned as error JSON objects associated with the input item.

Discussion