Portainer icon

Portainer

Interact with Portainer via API

Actions190

Settings → Settings Update

AI-generated

Overview

This node allows updating settings in the Portainer system via its API. It is useful when you want to programmatically change configuration options or preferences within Portainer, such as modifying environment variables, toggling features, or adjusting system parameters. For example, you might use this node to automate changing deployment settings or update user interface preferences without manual intervention.

Properties

Name Meaning
Body The new settings to apply, provided as a JSON string. This should contain the updated configuration data that you want to send to Portainer for the settings update operation.

Output

The node outputs the response from the Portainer API after attempting to update the settings. The json output field contains the API's response data, which typically includes confirmation of the updated settings or error details if the update failed. There is no indication that the node outputs binary data.

Dependencies

  • Requires an API key credential for authenticating with the Portainer API.
  • Needs the base URL of the Portainer instance configured in the credentials.
  • Depends on the Portainer REST API being accessible and properly configured to accept settings updates.

Troubleshooting

  • Invalid JSON in Body: If the "Body" property contains malformed JSON, the API call will fail. Ensure the JSON string is valid and correctly formatted.
  • Authentication Errors: If the API key or URL is incorrect or missing, the node will not authenticate successfully. Verify the credentials are correct and have sufficient permissions.
  • API Endpoint Issues: If the Portainer API endpoint is unreachable or returns errors, check network connectivity and Portainer server status.
  • Permission Denied: The API user may lack permission to update settings. Confirm the API token has appropriate rights.
  • Error Messages: The node will relay error messages from the Portainer API, which can include validation errors or unauthorized access. Review these messages to adjust the request accordingly.

Links and References

Discussion