AboutContactLogin

Index

MovePhoto

The MovePhoto method moves a photograph from one photoset to another. This method can also be used to change the position of a photo within the photoset.

void MovePhoto(
    long srcSetId,
    long photoId,
    long destSetId,
    int index
    )

Parameters

srcSetId
64-bit identifier of the photoset that contains the photo to be moved
photoId
64-bit identifier of the photo to move
destSetId
64-bit identifier of the destination photoset
index
Position in the destination photoset. This parameter is zero-based.

Remarks

The photosets identified by the srcSetId and destSetId parameters must be owned by the currently authenticated user. In addition, both photosets must be of the same type. It is not possible to move a photo from a gallery to a collection and vice versa.

To change the position of a photo within the photoset, specify the same photoset identifier for both srcSetId and destSetId. The index parameter is zero-based, that is, the very first photo in the photoset has index 0, the following photo has index 1, and so on.

See Also