updateTagFieldValues updatetagfieldvalues

更新标记字段的标记字典值。

语法

授权用户类型 section-0372b742b1344979b0668faacb36fcc6

  • IpsAdmin
  • IpsCompanyAdmin
  • ImagePortalAdmin

参数 section-0a3a4bab026746238c9d4009caf42e94

输入(updateTagFieldValuesParam)

名称
类型
必需
说明
companyHandle
xsd:string
公司句柄。
fieldHandle
xsd:string
标记字段句柄。
updateArray
类型:TagValueUpdateArray

要更新的标记字段值的数组。

注意:仅更新标记字符串值。 不会影响资源关联。

输出(updateTagFieldValuesReturn)

名称
类型
必需
说明
successCount
xsd:int
成功更新的标记字段数。
warningcount
xsd:int
操作尝试更新标记字段时生成的警告数。
errorCount
xsd:int
操作尝试更新标记字段时生成的错误数。
warningDetailArray
types:TagValueUpdateFaultArray
与资源关联的详细信息数组,这些资源在操作尝试更新标记字段时生成警告。
errorDetailArray
types:TagValueUpdateFaultArray
与资产关联的详细信息数组,在操作尝试更新标记字段时这些资产会生成错误。

示例 section-bb4dcf97044c4675974c9b8d27674001

请求

<updateTagFieldValuesParam xmlns="http://www.scene7.com/IpsApi/xsd/2010-01-31">
   <companyHandle>c|3</companyHandle>
   <fieldHandle>m|3|ASSET|SingleFixedTag</fieldHandle>
   <updateArray>
      <items>
         <oldValue>Nurth</oldValue>
         <newValue>North</newValue>
      </items>
      <items>
         <oldValue>Suth</oldValue>
         <newValue>South</newValue>
      </items>
      <items>
         <oldValue>East</oldValue>
         <newValue>West</newValue>
      </items>
      <items>
         <oldValue>Banana</oldValue>
         <newValue>Pear</newValue>
      </items>
   </updateArray>
</updateTagFieldValuesParam>

响应

<updateTagFieldValuesReturn xmlns="http://www.scene7.com/IpsApi/xsd/2010-01-31">
   <successCount>2</successCount>
   <warningCount>0</warningCount>
   <errorCount>2</errorCount>
   <errorDetailArray>
      <items>
         <value>East</value>
         <code>30001</code>
         <reason>New tag value 'West' already exists.</reason>
      </items>
      <items>
         <value>Banana</value>
         <code>30001</code>
         <reason>Tag value 'Banana' not found.</reason>
      </items>
   </errorDetailArray>
</updateTagFieldValuesReturn>
recommendation-more-help
4e9b9d8c-5839-4215-aa35-01b652869681