ÃÛ¶¹ÊÓƵ

setProjectAssets setprojectassets

Assign or update assets in a project.

Syntax

Authorized User Types section-8d87939db6d547b48ca6d71771bbefa8

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

Parameters section-bd51ef23deaf434ba2efb8cef2a8b4a5

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 section-33c1a909c3dc4aa98da474c23a036596

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>
recommendation-more-help
4e9b9d8c-5839-4215-aa35-01b652869681