You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While our REST API endpoint supports JSON patch and semantic patch protocols for updating your feature flags, our API client libraries only support JSON patch. This is due to an issue with the generator where some of the client libraries aren't able to handle the flexibility of supporting two distinct formats for a common API endpoint.
The format you described with instructions is our semantic patch protocol. This is incompatible with how the library works.
Instead, with JSON patch, you'll specify an op, path, and value - in line with what you mentioned from the PatchOperation type. Search for Using JSON patches on a feature flag on the API doc to learn more about how to structure these requests.
If you don't want to use JSON patch to update your flags and you instead want to use semantic patch, you'll need to hand-craft those HTTP requests outside of the API client library.
Hey,
I know this is auto generated client, but hopefully you would have a solution.
When i use the api-client-typescript package, and try to send a
.patchFeatureFlag()
with a payload example:There are 2 problems:
op
,path
andvalue
, so there is a TS compile error.And the response from the REST API is 400 Error
Please advise, is there a way to use all the different patch operations via the client?
The text was updated successfully, but these errors were encountered: