API - Unpublished Page is not getting new updated_at value?

wb1
Shopify Partner
40 1 3

I'm seeing something strange with the pages endpoint of the API. The specific route I'm calling is: https://{shop}.myshopify.com/admin/api/2020-10/pages.json?limit=250&updated_at_min={ISO-timestamp}&fields=id,title,handle,published_at,updated_at,body_html,image,tags


1. query all pages
2. save updated_at value for each page
3. subsequent queries should only return updated pages based on updated_at_min field in url


If I change a Page from unpublished to published, it DOES seem to get a new updated_at value, and is returned in the results.

PROBLEM

My issue is that when I change a Page from published to unpublished, it DOES NOT seem to get a new updated_at value. So that page is not returned in the results based on `updated_at_min=` and I won't know if it's been unpublished.

Is this a bug, or expected behavior?

0 Likes
wb1
Shopify Partner
40 1 3

This seems to be the same behavior for Pages, Articles and Collections — when moving from published to unpublished. Products will fire webhook event and also eligible for query via rest and `updated_at_min`

0 Likes