AvantGuard - WebhookSite icon

AvantGuard - WebhookSite

AvantGuard - WebhookSite

Actions100

Overview

The "Update Public Photo" operation allows users to modify the details of an existing public photo record. Specifically, it updates the association of a public photo with a different record type and record ID. This is useful in scenarios where photos need to be re-linked or corrected to point to the appropriate content entity, such as changing the photo's linked article or other record types.

Practical examples:

  • Correcting a photo that was mistakenly linked to the wrong article by updating its record type and record ID.
  • Reassigning a public photo from one content piece to another after content restructuring.

Properties

Name Meaning
Id The unique identifier of the public photo to update.
Record Type The updated type of record the photo is associated with (e.g., Article).
Record Id The updated ID of the record the photo is associated with.

Output

The node outputs JSON data representing the updated public photo resource. This typically includes the photo's ID, updated record type, record ID, and possibly other metadata confirming the successful update.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication to the external service managing public photos.
  • The node uses a base URL configured via credentials to send HTTP requests.
  • The operation sends JSON-formatted data in the request body to update the photo.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent photo ID will likely result in an error indicating the photo could not be found.
    • Omitting required fields such as record_type or record_id will cause validation errors.
    • Incorrect API credentials or base URL misconfiguration can lead to authentication failures or connection errors.
  • Error messages and resolutions:

    • "Photo not found": Verify the photo ID exists and is correct.
    • "Missing required fields": Ensure all required properties (Id, Record Type, Record Id) are provided.
    • Authentication errors: Check that the API key credential is valid and properly configured in n8n.

Links and References

  • No direct links available from the source code. For more information, consult the API documentation of the service managing public photos or the n8n community forums for usage examples.

Discussion