New Shopify Certification now available: Liquid Storefronts for Theme Developers

list.single_line_text_field Post?

Shopify Partner
84 4 14

Hey There, 


Wondering if anyone has any guidance... I am sending the below payload to the following URL, but seem to be getting a bad request error. namespace and key are correct, as it the type.



        "metafield": {
            "namespace": "theme",
            "key": "highlight",
            "value": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
            "type": "list.single_line_text_field"



Reply 1 (1)
Shopify Staff
Shopify Staff
1663 232 341

Hey @Chris_Sydney 


I think the payload has to include the variant ID, e.g.:


    "metafields": [
      {"key":"new","value":"newvalue", etc.. }


More here:


Let me know if you get stuck!

Scott | Developer Advocate @ Shopify