collections.updateManualCollection

Syntax

bool collections.updateManualCollection ( int collection, array newOrder = array(), array deletedFiles = array() )

Argument Info

NameTypeRequiredDefault valueDescription
collectionintRequirednoneThe collection ID.
newOrderarrayOptionalarray()The new order of the media in the collection. This must be passed in an array.

The correct syntax is is ...?newOrder[[MEDIA_ID1]]=1&newOrder[MEDIA_ID2]=2
deletedFilesarrayOptionalarray()The files to be deleted from the collection. This must be passed in an array.

The correct syntax is is ...?deletedFiles[]=MEDIA_ID1&deletedFiles[]=MEDIA_ID2

Response

The response will be 1 if the update was a success.

NameTypeDescriptionDefault Values
idINTThe success result will be 1 if the update was completed.INT

Return Values

FieldDescriptionPossible Values