-
I'm trying to migrate some data we have in Unleash and I need to automatically update Segment via API. I'm referring to this endpoint: https://docs.getunleash.io/reference/api/unleash/update-segment It says: "Any fields not specified will be left untouched", but if I try to PUT an empty body, I got a 400 Bad Request Then let's add a "dummy name".. I got the same message but this time, it is the field "constraints" which is apparently missing. My question: is the doc up-to-date ? It really looks like a PUT (like the endpoint verb says) and not a PATCH (like the description says), do you confirm ? PS: what I really want is to update "constraints" but unfortunately, I have the "name is required" error when I try to just push a payload with only "constraints" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I've played a little bit with the API, and it seems that since the Segment open api description says "name" is required, it is also required in this PUT endpoint, even though we want to update another param. Should I create a bug issue to fix that ? |
Beta Was this translation helpful? Give feedback.
I've created the following issue: #7987