A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I am trying to figure out how to add new Zones and Methods to existing Delivery Profiles. I tried to create a new profile and add all the zones at once, but I got an error saying my payload was too large. So I then started trying to find a way to create a Delivery Profile, then add all the zones 1 at a time. The problem I'm facing is trying to figure out the combination in GraphQL to do that. All my attempts so far have either failed or completely overridden what was already there instead of adding to it. Can someone help me with this?
Hey there, coworker of Matt_SCP here!
Wanted to add some more info and boost this post.
We've found a solution to the problem of overwriting zone data on update. The original mutation in the script was using a "locationGroupsToCreate" key; we need to use "locationGroupsToUpdate" and provide a location group ID.
We can't seem to find location groups in the UI, which would be useful... but in any case, when we make a GraphQL POST request with the change described above, it adds new zone information to the delivery profile rather than overwriting it entirely. So we should be able to use this method to make our requests sequentially (to avoid rate limiting) for every zone defined in the input.
Hope this helps someone in the future!
where can i get location group id because when i pass location id like this it throws error