Hi @iristan and @davidalarcon ,
I’ve taken a look into this further on my own test store and was not able to replicate this issue. Just to clarify as well, this issue is pertaining to the REST Admin API and I will be moving this thread to our Products, Variants, and Collections board, as this current board is specifically for questions regarding our GraphQL Admin API.
Here is an example from my own test store using the Postman API Client with a Custom App installed on my store.
- Here’s a GET Request to the individual products.json endpoint that shows the status field is currently set to draft, and the published_scope field is currently set to web, prior to the PUT request
Request
GET /admin/api/2024-01/products/8189617307810.json?fields=id,created_at,updated_at,published_scope,status
Response
{> “product”: {> “id”: 8189617307810,> “created_at”: “2024-02-23T17:44:00-05:00”,> “updated_at”: “2024-03-18T11:29:08-04:00”,> “published_scope”: “web”,> “status”: “draft”> }> }
- Here’s the PUT request where I was successfully able to update both the status and published_scope fields without specifying the published_at field at the same time, to clarify that field as well published_at is automatically updated when the product status changes.
Request
PUT /admin/api/2024-01/products/8189617307810.json
Request Body
{“product”:{“id”:8189617307810,“status”:“active”, “published_scope”:“global”}}
Response
{> “product”: {> “id”: 8189617307810,> …> “updated_at”: “2024-03-18T11:32:31-04:00”,> “published_at”: “2024-03-18T11:32:31-04:00”,> …> “published_scope”: “global”,> …> “status”: “active”,> > …> > }> > }
Since we’re not able to replicate this behaviour on our end to be able to help you further we’d like to ask if you can reach out to our Support Team via our Shopify Help Center with some specific examples of this behaviour occurring including the following details, and we can definitely help take a closer look:
- A recent example of this issue occurring on a currently supported api version (2023-04 to 2024-04)
- including timestamp (within the last 14 days)
- full HTTP request and response, both URL, Body, and Headers (don’t include private keys or tokens)
- A link to the affected product in your admin
- The App that you are running the queries from
If you are still able to replicate this behaviour, please let our support team know with the following information above and we can absolutely help look into the specific cases further!
I hope this helps and I you have a great day 