Actions100
- Activity Logs Actions
- Articles Actions
- Asset Layouts Actions
- Asset Passwords Actions
- Assets Actions
- Get Assets
- Get Companies Company Id Assets
- Post Companies Company Id Assets
- Get Companies Company Id Assets Id
- Put Companies Company Id Assets Id
- Delete Companies Company Id Assets Id
- Put Companies Company Id Assets Id Archive
- Put Companies Company Id Assets Id Unarchive
- Put Companies Company Id Assets Id Move Layout
- Cards Actions
- Companies Actions
- Expirations Actions
- Exports Actions
- Folders Actions
- IP Addresses Actions
- Lists Actions
- Magic Dash Actions
- Matchers Actions
- Networks Actions
- Password Folders Actions
- Procedure Tasks Actions
- Procedures Actions
- Public Photos Actions
- Rack Storage Items Actions
- Rack Storages Actions
- Relations Actions
- Uploads Actions
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_typeorrecord_idwill 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.