API Reference

Collections.updateSearchCollection

This method is used to update a saved search collection.

The settings argument is an array of media ID's in the collection and the new order that they should be returned to in from this point forward.

The collection name and description can be changed with the updateCollectionInfo method.


Syntax

bool collections.updateSearchCollection ( int collection, array settings )

Arguments

NameTypeRequiredDefault valueDescription
collectionintRequirednoneThe collection ID.
settingsarrayRequirednoneThe settings array to update (sort, filetype, channel, etc.).

Sample Response

Sample REST Response
http://api.newspark.ca/services/rest/collections/updateSearchCollection?collection=[COLLECTION_ID]&settings[filetype]=1&settings[channel]=[CHANNEL_ID]&settings[sort]=[NEW_SORT_PARAM]&settings[sortdir]=[SORT_DIRECTION]&settings[includeChildChannels]=true&settings[limit]=5&settings[limitSelect]=false&settings[query]=[QUERY_VALUE]&settings[timelimit]=8000&APIKEY=[APIKEY]
<?xml version="1.0" encoding="UTF-8"?>
<result>1</result>
Sample JSON Response
{
    "status": true,
    "result": 1
}

Code examples

0 comments

Be the first to comment on updateSearchCollection.

Add a Comment

  • captcha