Actions109
- 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
- Websites Actions
- Procedures Actions
- Public Photos Actions
- Rack Storage Items Actions
- Rack Storages Actions
- Relations Actions
- Uploads Actions
- Users Actions
- Activity Logs Actions
- Articles Actions
Overview
The "Update Public Photo" operation for the "Public Photos" resource allows you to update details of an existing public photo in your system. This is useful when you need to change the association of a photo to a different record or update its metadata, such as linking it to a new article or entity.
Common scenarios:
- Reassigning a public photo to a different article or record after content updates.
- Correcting mistakes in the record association of a photo.
- Keeping photo associations up-to-date as records evolve.
Practical example:
If you have a photo initially linked to Article ID 101 and you want to associate it with Article ID 202 instead, you would use this node to update the record_type to "Article" and record_id to 202 for the specified photo.
Properties
| Name | Type | Meaning |
|---|---|---|
| Id | Number | The ID of the public photo to update. |
| Record Type | String | The updated type of record the photo is associated with (e.g., Article). |
| Record Id | Number | The updated ID of the record the photo is associated with. |
Output
The node outputs a JSON object representing the updated public photo. The structure typically includes fields reflecting the updated association, such as the photo's ID, the new record type, and the new record ID. Additional metadata about the photo may also be included depending on the API response.
Dependencies
- External Service: Requires access to the AvantGuard Hudu API.
- API Key/Credentials: Needs valid credentials (
avantguardHuduApi) configured in n8n, including the base URL and authentication details. - n8n Configuration: Ensure the credentials are set up in n8n under the name "avantguardHuduApi".
Troubleshooting
Common issues:
- Invalid Credentials: If the API key or base URL is incorrect, the node will fail to authenticate. Double-check your credential setup in n8n.
- Photo Not Found: If the provided "Id" does not correspond to an existing public photo, the API may return a "not found" error.
- Missing Required Fields: All properties ("Id", "Record Type", "Record Id") are required. Omitting any will result in validation errors.
- Incorrect Record Type/Id: Providing a non-existent or invalid record type or ID may cause the update to fail.
Error messages and resolutions:
"401 Unauthorized": Check your API credentials."404 Not Found": Verify the "Id" matches an existing public photo."400 Bad Request": Ensure all required fields are filled and valid.