resource_type and resource_field

resource_type indicates the type of the resource. For example, PRODUCT represents a product resource.

resource_field indicates the attribute associated with the content of resource_content. For example, if resource_content is a product title, resource_field is title.

The valid values for resource_type and resource_field are as follows:

resource_typeResource type descriptionresource_fieldResource field description
COLLECTIONCollectiontitleTitle
body_htmlBody html
meta_titleMeta title
meta_descriptionMeta description
PRODUCTProducttitleTitle
subtitleSubtitle
body_htmlBody html
meta_titleMeta title
meta_descriptionMeta description
PRODUCT_CategoryProduct categoryname,fullNameName, Full name
PRODUCT_OPTIONProduct optionoptionOption
PRODUCT_VARIANTProduct variantvalueValue
SELLING_PLANSelling planselling_plan_nameSelling plan name
FILTERFilterlabelLabel
FILTER_GROUPFilter grouplabelLabel
FILTER_VALUEFilter valuelabelLabel
SORTSortsort_textSort text
DELIVERY_METHODDelivery methodnameName
descriptionDescription
PAYMENT_METHODPayment methodnameName
descriptionDescription
extra_infoExtra information
TAXESTaxestax_policyTax policy
duty_nameDuty name
SETTLE_CONFIGSettlement configurationtip_titleTip title
tip_descriptionTip description
tip_placeholderTip placeholder
tip_buttonTextTip button text
tip_thanksNoteTip thanks note
security_noteSecurity note
security_after_sale_noteSecurity after sale note
SETTLE_ADDITIONAL_INFOSettlement additional informationextra_infoExtra information
WEBSITE_BLOGWebsite blogtitleTitle
body_htmlBody html
subtitleSubtitle
meta_titleMeta title
meta_descriptionMeta description
WEBSITE_BLOG_COLLECTIONWebsite blog collectiontitleTitle
meta_titleMeta title
meta_descriptionMeta description
WEBSITE_CUSTOMIZE_PAGEWebsite customize pagetitleTitle
body_htmlBody html
meta_titleMeta title
meta_descriptionMeta description
WEBSITE_NAVIGATIONWebsite navigationtitleTitle
WEBSITE_POLICY_PAGEWebsite policy pagebody_htmlBody html
LINKLinktitleTitle
METAFIELDMetafield{owner_resource}.metafields.{namespace}.{key}.valueMetafield information.
• owner_resource: The resource type to which the metafield definition belongs. Valid values include: products, variants, collections, customers, orders, pages, blogs, articles, shop.
• namespace: The namespace of the metafield.
• key: The unique identifier of the metafield within its namespace.
• value: The data stored in the metafield.
Was this article helpful to you?