Portainer icon

Portainer

Interact with Portainer via API

Actions190

Edge Jobs → Edge Job Update

AI-generated

Overview

This node operation updates an existing Edge Job in Portainer, a container management platform. It is useful when you need to modify the configuration or parameters of a specific Edge Job by providing its unique identifier and the updated data payload. Typical use cases include automating deployment updates, changing job schedules, or adjusting runtime settings for edge computing environments managed through Portainer.

Properties

Name Meaning
Id The unique numeric identifier of the Edge Job to update. This is required to specify which Edge Job will be modified.
Body A JSON string representing the new data for the Edge Job. This contains the updated configuration details that will replace the current job data.

Output

The node outputs the response from the Portainer API after attempting to update the Edge Job. The json output field typically contains the updated Edge Job object or confirmation details returned by the API. There is no indication that binary data is handled or returned by this operation.

Dependencies

  • Requires an active connection to a Portainer instance via its API.
  • Needs an API key credential configured in n8n to authenticate requests against the Portainer API.
  • The base URL for the Portainer API must be set in the credentials.
  • The node uses standard HTTP headers for JSON content negotiation.

Troubleshooting

  • Invalid Id: If the provided Edge Job Id does not exist, the API will likely return an error indicating the resource was not found. Verify the Id before running the node.
  • Malformed Body: The Body property must be a valid JSON string representing the Edge Job data. Invalid JSON or missing required fields can cause the update to fail.
  • Authentication Errors: Ensure the API key credential is correctly configured and has sufficient permissions to update Edge Jobs.
  • API Connectivity Issues: Network problems or incorrect base URL settings can prevent successful communication with the Portainer API.
  • Error Messages: Common errors may include 400 Bad Request (invalid input), 401 Unauthorized (authentication failure), or 404 Not Found (invalid Edge Job Id). Review the error message details to adjust inputs or credentials accordingly.

Links and References

Discussion