updateMetadataField

Update field metadata.

Syntax

Authorized User Types

  • IpsAdmin
  • IpsCompanyAdmin
  • ImagePortalAdmin

Parameters

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

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