We’re working on migrating our product management from the older create/update mutations to the newer APIs before the January 2025 deprecation deadline.
Currently using the productSet
API to manage products, but encountering issues with the claimOwnership
parameter. While this parameter is documented, it’s not functioning as expected.
Current Implementation:
mutation ProductSetWithOptionsAndVariants($productSet: ProductSetInput!, $synchronous: Boolean!) {
productSet(synchronous: $synchronous, input: $productSet) {
product {
id
title
}
userErrors {
field
message
}
}
}
Input:
{
"synchronous": true,
"productSet": {
"title": "Bundle Product",
"status": "DRAFT",
"claimOwnership": {
"bundles": true
}
}
}
The API call executes successfully but ownership isn’t being transferred. Has anyone successfully used claimOwnership
with productSet
? Are there any specific requirements or prerequisites we might be missing?
Expected Behaviour
App should be controlling the variants and they should not be editable from the Shopify admin.
Actual Behaviour
Variants can still be edited from Shopify admin and are not controlled by the app
Any guidance would be greatly appreciated as we work towards the migration deadline.
Additional Context:
- Using Admin API 2025-01
- Successfully migrated other mutations
- No errors in
userErrors
response