Shopware icon

Shopware

Shopware

Actions778

Log Entry → Update Log Entry

AI-generated

Overview

This node updates an existing log entry in the system. It is useful for scenarios where you need to modify details of a log entry such as its message, level, channel, context, extra data, or timestamps. For example, you might use this node to correct or add information to a log entry after it has been created.

Use Case Examples

  1. Updating the message and level of a specific log entry identified by its Id.
  2. Adding additional context or extra JSON data to an existing log entry.

Properties

Name Meaning
Id Identifier for the log entry to update. This is a required field to specify which log entry to modify.
Response Data format for the response. This is optional and can be left empty if no specific response format is needed.
Message The updated message content of the log entry.
Level The updated severity level of the log entry, represented as a number.
Channel The updated channel or category of the log entry.
Context Additional context for the log entry in JSON format.
Extra Extra data related to the log entry in JSON format.
Created At The creation timestamp of the log entry.
Updated At The timestamp when the log entry was last updated.

Output

JSON

  • id - The identifier of the updated log entry.
  • message - The updated message of the log entry.
  • level - The updated severity level of the log entry.
  • channel - The updated channel of the log entry.
  • context - The updated context data of the log entry.
  • extra - The updated extra data of the log entry.
  • createdAt - The creation timestamp of the log entry.
  • updatedAt - The last updated timestamp of the log entry.

Dependencies

  • Requires an API key credential for authentication to the Shopware Admin API.

Troubleshooting

  • Ensure the 'Id' property is provided and correctly identifies an existing log entry; otherwise, the update will fail.
  • If the API returns an error, check the network connection, API endpoint URL, and authentication credentials.
  • Invalid JSON format in 'Context' or 'Extra' properties may cause errors; ensure these fields contain valid JSON.

Discussion