BatchUpdate may be used for more than just setting metadata on assets. It may also be used for creating combo values
...
Name | Example | Description |
---|---|---|
accessKey | eb774621-1c2f-467b-b006-a8efa67094a7 | accessKey that grants access to the API |
The updateXML and values is send as forms data and it looks like this:
updateXML
Code Block |
---|
<r> <asset<metacombo_definition fieldId="MetaDataUpdateMetaDataUpdate0"> <metafield<item_metafield_labelid fieldId="MetaFieldLabeliditem_metafield_50723labelid" labelId/> <combovalue fieldId="50723combovalue"/> <metafield<optionvalue fieldId="MetaFieldLabelid_51867" labelId="51867optionvalue"/> <sortindex fieldId="sortindex"/> <metafield<ispublic fieldId="MetaFieldLabelid_51876" labelId="51876ispublic"/> <visible fieldId="visible"/> </asset>metacombo_definition> </r> |
values
Code Block |
---|
[{ "Id": "MetaDataUpdateMetaDataUpdate0", "FieldId": "MetaDataUpdateMetaDataUpdate0", "ContainerType": 71, "RowId": 1, "Values": [{ "FieldId": "MetaFieldLabelid_50723item_metafield_labelid", "Type": 3, "Values": [51867] }, { "FieldId": "combovalue", "Type": 1, "Values": ["Deserttest title 23"] }, { "FieldId": "MetaFieldLabelid_51867optionvalue", "Type": 61, "Values": [51603"3"] }, { "FieldId": "MetaFieldLabelid_51876sortindex", "Type": 173, "Values": ["test 1"] }], "ItemIds": ["10313"]0] }, { "FieldId": "ispublic", "Type": 2, "Values": [true] }, { "FieldId": "visible", "Type": 2, "Values": [true] }], "BaseId": 0 }] |
cUrl data example
Info | ||
---|---|---|
| ||
curl -X POST \ |
...