updateMetadataField updatemetadatafield

Update field metadata.

Syntax

Authorized User Types section-540e91823fee49a4920ca738f7bfeb99

  • IpsAdmin
  • IpsCompanyAdmin
  • ImagePortalAdmin

Parameters section-69681ed1ddff437ca1c73f46fe835c96

Input (updateMetadataFieldParam)

Parameter name
Type
Required
Description
companyHandle
xsd:string
Yes
Company handle.
fieldHandle
xsd:string
Yes
Metadata field handle.
name
xsd:string
No
Metadata field name.
defaultValue
xsd:string
No
Metadata field value.
isHidden
xsd:boolean
No
Hide or expose IPS system-specific metadata.
isEnforced
xsd:boolean
No

A boolean flag that indicates whether the metadata field is enforced (validated) when the value is set.

If set to true, then a fault is thrown if an illegal value is set in setAssetMetadata / batchSetAssetMetadata.

initialTagValue
xsd:string
No
Lets you create a set of shared enumerated values that selected tags can point to.

Output (updateMetadataFieldReturn)

Name
Type
Required
Description
fieldHandle
xsd:string
Yes
Metadata field handle.

Examples section-bb7d93ab6d914ddfa294e08983e589ee

This code sample updates assigns a new name and default value to a metadata field. The response returns a handle to the updated field.

Request

<updateMetadataFieldParam xmlns="http://www.scene7.com/IpsApi/xsd/2008-01-15">
   <companyHandle>c|21</companyHandle>
   <fieldHandle>m|21|IMAGE|createMetadataField</fieldHandle>
   <name>updateMetadataField</name>
   <defaultValue>Default</defaultValue>
</updateMetadataFieldParam>

Response

<updateMetadataFieldReturn xmlns="http://www.scene7.com/IpsApi/xsd/2008-01-15">
   <fieldHandle>m|21|IMAGE|updateMetadataField</fieldHandle>
</updateMetadataFieldReturn>
recommendation-more-help
4e9b9d8c-5839-4215-aa35-01b652869681