Images: Deactivate flexible variants

How can I deactivate flexible variants?

–data '{“flexible_variants”: false}

does not work. Thx!

“Does not work” is not helpful. Could you please elaborate? Are you getting an error? Could you send a screenshot?

image

4 Likes

It needs some minutes to take affect!

curl -X PATCH LINK
-H “Authorization: Bearer <API_TOKEN>”
-H “Content-Type: application/json”
–data ‘{“flexible_variants”: false}’

works an you get back

{
“result”: {},
“result_info”: null,
“success”: true,
“errors”: ,
“messages”:
}

So everything works now?

yes, thank you

1 Like