Hello I am getting error when I try to associate a variant to a delivery profile, I am using python, this is the code:
query = """
mutation deliveryProfileUpdate($id: ID!, $profile: DeliveryProfileInput!)
{
deliveryProfileUpdate(id: $id, profile: $profile)
{
profile {
id
}
userErrors {
field
message
}
}
}
"""
variables = {
"id":"gid://shopify/DeliveryProfile/DID",
"profile":{
"variantsToAssociate":"gid://shopify/ProductVariant/VID"
}
}
result = shopify.GraphQL().execute(query, variables=variables)
This is the error message:
[{'field': None, 'message': 'Profile could not be updated.'}]