photos
photos.createAlbum
Creates an empty photo album.
To call this method, you can use:
• user access token (access right required: photos — this is issued in exceptional cases by a request to support at devsupport@corp.vk.com)
Parameters
title
string
Album title.
Required parameter Min. length = 2
group_id
integer
ID of the community in which the album will be created.
description
string
Album description.
privacy
integer
Who can view the album: 1 — only friends 2 — friends and friends' friends 3 — only me (the current user) 0 — all users
comment_privacy
integer
Who can comment on the album: 1 — only friends 2 — friends and friends' friends 3 — only me (the current user) 0 — all users
privacy_view
string
privacy_comment
string
upload_by_admins_only
checkbox
comments_disabled
checkbox
Result
Returns an object containing the following fields:
- •aid — ID of the created album.
- •thumb_id — ID of the album cover photo.
- •owner_id — ID of the user or community that owns the album.
- •title — Album title.
- •description — Album description.
- •created — Date (in Unix time) when the album was created.
- •updated — Date (in Unix time) the album was last updated.
- •size — Number of photos in the album.
- •privacy — Privacy settings for viewing the album.
- •comment_privacy — Privacy settings for commenting on the album.
Error codes
302
Albums number limit is reached
Common errors may occur during execution
Related methods
photos.editAlbumphotos.deleteAlbum
Edits information about a photo album.
Deletes a photo album belonging to the current user.
Linked versions
Go to API versions pageThe data format has been changed, describes the privacy .