Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Resource → Set the password for a resource.

AI-generated

Summary

Set the password for a specified resource by providing the resource ID and the new password in the request body.

Inputs

  • Resource ID (required) — The string identifier of the resource for which you want to set the password.
  • Body (required) — A JSON object containing the new password, e.g., {"password": "string"}.
  • Options — Additional settings such as 'Raw Response' to return the full response data instead of splitting arrays into individual items.

Output shape

A single JSON object representing the result of setting the password for the specified resource.

If the 'Raw Response' option is enabled, the full API response is returned; otherwise, the response is returned as a single JSON item. Errors will be returned as JSON objects with an 'error' field if 'Continue On Fail' is enabled.

Examples

Example 1: Set a new password for a resource with ID 'resource123'

Provide 'resource123' as the Resource ID and a JSON body with the new password, such as {"password": "newSecret123"}.

Discussion