searchAssets
Search for assets based on your specified criteria.
Syntax
searchAssets: About
searchAssets
is the primary method of retrieving IPS assets. This method is used for various purposes such as browsing the folder hierarchy or finding a specific asset by name.
Response Size
searchAssets
returns up to 1000 assets in a single call. To return up to 10,000 assets per call, limit the response data to a subset of the totalRows
, name
, handle
, type
, and subType
fields. To return larger sets, set up paging with the resultPage
parameter.
Limit Result File Size with responseFieldArray or excludeFieldArray
Limit the size of your data set with the responseFieldArray
or excludFieldArray
parameters. These parameters help reduce memory use and bandwidth and can improve server response times.
Authorized User Types
IpsUser
IpsAdmin
IpsCompanyAdmin
TrialSiteAdmin
TrialSiteUser
ImagePortalAdmin
TrialSiteUser
ImagePortalAdmin
ImagePortalUser
ImagePortalContrib
ImagePortalContribUser
Parameters
Input (searchAssetsParam)
Choice of Search Match Modes for combining results of keywordArray,
conditionMatchMode
systemFieldConditionArray, and metadataConditionArray. Default is MatchAll.
Note: Deprecated parameter. It is advised that you do not use it.
A string array of keywords to match.
Choice of Search Match Modes for combining systemFieldCondition matches. Default is MatchAll
.
An array of tag field search predicates.
Predicates are combined according to the tagMatchMode setting, and then combined with any terms in keywordArray, systemFieldConditionArray, and metadataConditionArray according to the conditionMatchMode setting.
Output (searchAssetsReturn)
xsd:int
types:AssetArray
Examples
This code sample searches for image assets that belong to a specific company. The response is truncated for brevity.
Request
<ns1:searchAssetsParam xmlns:ns1="http://www.scene7.com/IpsApi/xsd">
<ns1:companyHandle>47</ns1:companyHandle>
<ns1:includeSubfolders>true</ns1:includeSubfolders>
<ns1:assetTypeArray>
<ns1:items>Image</ns1:items>
</ns1:assetTypeArray>
</ns1:searchAssetsParam>
Response
<searchAssetsReturn xmlns="http://www.scene7.com/IpsApi/xsd">
<totalRows>210</totalRows>
<assetArray>
<items>
<assetHandle>24265|1|17061</assetHandle>
<type>Image</type>
<name>Autumn Leaves</name>
...
</items>
</assetArray>
</searchAssetsReturn>