Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

title_tag and description_tag not updating #1238

Closed
cfreak opened this issue Nov 2, 2023 · 1 comment
Closed

title_tag and description_tag not updating #1238

cfreak opened this issue Nov 2, 2023 · 1 comment

Comments

@cfreak
Copy link

cfreak commented Nov 2, 2023

Issue summary

title_tag and description_tag not updating when setting it over Rest-API

seo_settings

We are using this Endpoint:
PUT https://houseware-ch.myshopify.com/admin/api/2023-10/metafields/XXXX.json

With this data:

array:1 [ "metafield" => array:3 [ "value" => "Test" "namespace" => "global" "type" => "single_line_text_field" ] ]

  • shopify_api version: 2023-10

And we get the following response with 200 Status Code:

array:1 [ "metafield" => array:11 [ "id" => XXXX "namespace" => "global" "key" => "title_tag" "value" => "Hochwertiges Weinzubehör online kaufen ✓ Top Qualität" // <--This one does not update "description" => null "owner_id" => XXXXX "created_at" => "2023-09-27T14:47:46+02:00" "updated_at" => "2023-09-27T14:47:46+02:00" "owner_resource" => "collection" "type" => "string" "admin_graphql_api_id" => "gid://shopify/Metafield/XXXXX" ] ]

Expected behavior

The Field for the specific collection should change from "Hochwertiges Weinzubehör online kaufen ✓ Top Qualität" to "Test"

Actual behavior

The Value doesn't change

Additional

Not sure why this is happening, or if i'm doing something wrong. But we don't get any error / debug message

Can someone help?

@silvolu
Copy link

silvolu commented Dec 1, 2023

If I understand correctly, you are making REST request directly rather than using the Ruby library? If that's the case, please post your question in the Metafields developer forum.

@silvolu silvolu closed this as completed Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants