setProjectAssets

Assign or update assets in a project.

Syntax

Authorized User Types

  • IpsUser
  • IpsAdmin
  • IpsCompanyAdmin
  • ImagePortalAdmin
  • ImagePortalContrib
  • ImagePortalContribUser

Parameters

Input (setProjectAssetsParam)

Name Type Required Description
companyName xsd:string Yes Company handle.
projectHandle xsd:string Yes Project handle.
assetHandleArray types:HandleArray Yes The array of asset handles you want to associate with the project.

Output (setProjectAssetsReturn)

Name Type Required Description
successCount xsd:int Yes The number of successfully added assets.

Examples

This code sample assigns an asset to a project. The request returns a success count of one.

Request

<setProjectAssetsParam xmlns="http://www.scene7.com/IpsApi/xsd/2008-01-15">
   <companyHandle>c|6</companyHandle>
   <projectHandle>p|6|ProjectTestAPI</projectHandle>
   <assetHandleArray>
      <items>a|739|1|537</items>
   </assetHandleArray>
</setProjectAssetsParam>

Response

<setProjectAssetsReturn xmlns="http://www.scene7.com/IpsApi/xsd/2008-01-15">
   <successCount>1</successCount>
   <warningCount>0</warningCount>
   <errorCount>0</errorCount>
</setProjectAssetsReturn>

On this page