APIAdmin - Update blog article seo title and description

Hello,

I’m trying to update seo title and description metafield via a GraphQL APIAdmin call.

I’m using a make.com module to do this and the follow is the query:

mutation UpdateArticleMeta {
articleUpdate(
id: "gid://shopify/Article/{{43.id}}", 
article: {
metafields: [
{
namespace: "seo",
key: "title",
type: "single_line_text_field",
value: "{{40.result.meta_title}}"
},
{
namespace: "seo",
key: "description",
type: "multi_line_text_field",
value: "{{40.result.meta_description}}"
}
]
}
) {
article {
id
metafields(first: 2) {
edges {
node {
namespace
key
value
}
}
}
}
userErrors {
field
message
}
}
}

I’ve tried on the GraphQL App on Shopify and via make.com.

The call return 200 with no error but the fields never change.

Any idea?

Thanks

Hey,
Use the namespace ‘global’ as key ‘title_tag’ or ‘description_tag’. You can find more details here