N8N Tools VK icon

N8N Tools VK

Interact with VKontakte API

Photos → Edit Album

AI-generated

Overview

The node provides integration with the VKontakte (VK) social network API, enabling various operations on different VK resources. Specifically for the Photos resource and the Edit Album operation, this node allows users to modify existing photo albums by changing their titles.

This functionality is useful in scenarios where you want to programmatically update album information without manually using the VK interface. For example, you might rename an album based on dynamic data or user input within an automated workflow.

Properties

Name Meaning
count Number of items to return (used generally for pagination in list retrieval operations).
offset Offset for pagination (used to skip a number of items in list retrieval operations).
albumId The identifier of the album to edit (required to specify which album to update).
title The new title for the album (the updated name to set for the album).

Note: The provided JSON properties only included count and offset, but the code shows that for editing an album, albumId and title are required parameters.

Output

The output of the node is a JSON object representing the response from the VK API after attempting to edit the album. This typically includes confirmation of the update or details about the edited album.

The structure depends on the VK API's response format for the photos.editAlbum method, usually containing success status or updated album data.

No binary data output is involved in this operation.

Dependencies

  • Requires an authenticated connection to the VKontakte API via an OAuth2 API credential.
  • The node uses a VK API wrapper class internally to make HTTP requests to VK endpoints.
  • Network access to https://api.vk.com/method is necessary.

Troubleshooting

  • Common issues:

    • Missing or invalid albumId or title parameters will cause the API call to fail.
    • Insufficient permissions or expired authentication tokens can result in authorization errors.
    • Network connectivity problems may prevent successful API calls.
  • Error messages:

    • Errors returned from VK API will be propagated as error messages, e.g., "Unknown operation" if the operation parameter is incorrect.
    • If the node is configured to continue on failure, errors will appear in the output JSON under an error field.
  • Resolutions:

    • Ensure all required parameters (albumId, title) are correctly set.
    • Verify that the OAuth2 credentials are valid and have the necessary scopes.
    • Check network connectivity and VK API availability.

Links and References

Discussion