Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Site → Update a resource.

AI-generated

Summary

Update an existing resource for a specific site within an organization by sending a POST request with the desired changes in the request body.

Inputs

  • orgId (required) — The ID of the organization to which the site and resource belong.
  • siteId (required) — The ID of the site within the organization.
  • siteResourceId (required) — The ID of the resource at the specified site that you want to update.
  • body — A JSON object containing the updated properties of the resource such as name, protocol (tcp or udp), proxyPort, destinationPort, destinationIp, and enabled status.
  • options — Additional options such as 'Raw Response' which determines whether to return the full raw response instead of formatted or split data.

Output shape

a single JSON object representing the updated resource.

By default, the response is parsed and returned as individual items unless the 'Raw Response' option is enabled, which returns the complete response data. Errors will throw unless 'continue on fail' mode is enabled, in which case error details are included in the output JSON.

Discussion