Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Target → Update a target.

AI-generated

Summary

Update a target identified by its Target ID using the Pangolin API, sending a JSON body with the target details to modify.

Inputs

  • Target ID (required) — The unique identifier of the target to update.
  • Body — A JSON object representing the fields and values to update on the target. The JSON should conform to the API's expected schema for a POST request to /target/{targetId}.
  • Options — Additional options such as 'Raw Response' to determine if the full response data is returned without splitting arrays into individual items.

Output shape

a single JSON object representing the updated target or the full API response if 'Raw Response' is enabled.

If 'Raw Response' is enabled, the entire API response is returned as one item. If disabled and the response is an array, items are split into separate outputs. Errors are returned as JSON with an 'error' property if 'Continue On Fail' is enabled.

Examples

Example 1: Update a target's IP and port by specifying the targetId and body with the new IP and port values.

Set 'Target ID' to the target's ID and 'Body' to JSON with updated fields such as {"ip": "192.168.1.10", "port": 8080}.

Discussion