When I use the payload below for creating a page through api, it works all fields can be set.
{
"page": {
"title": "second trial",
"metafields": [
{
"key": "title_tag",
"value": "first trial title tag",
"type": "single_line_text_field",
"namespace": "global"
},
{
"key": "description_tag",
"value": "first trial description",
"type": "single_line_text_field",
"namespace": "global"
}
],
"body_html": "<div></div>
}
}
When I use same payload to update the page without sending metafields array again it’s working as expected.
Changes are reflecting.
However when I use the same payload above (metafields included), api returns 200 and the response shows that new fields (changed ones) however when I check the page, admin panel I am not seeing any changes (not only in the metafields but also the other fundamental fields like title for example which was updating successfully if I don’t include metafields) Also after updating with metafields, checking through api by fetching the page and still it shows old values.
I think there is a bug or something with the api, the response of the PUT request doesn’t reflect the reality. Or I am missing something?