Closed chrisdurand-RL closed 2 years ago
Hi @chrisdurand-RL, thanks for reaching out! Our client library only supports JSON Patch for this endpoint. I recognize we have room for improvement both for how we document which endpoint supports JSON patch vs semantic patch and also consistency across patch endpoints. Please know that we are tracking both these improvements internally and appreciate your feedback.
I am trying to do a workflow that requires either changing a flag directly or creating a change request, depending on the permission level of the user. This would be far easier if I could represent them the same way for each API. As the Approval API only accepts semantic patches, and not JSON patches, it made sense to try and use the functionality specified here to use the
patch_feature_flag
endpoint with semantic patches.There is no way to add a set of instructions to the patch_feature_flag method in the API client, but I can still set the header value Content-Type in such a way that the actual API will reject my request.
Steps to reproduce:
The code below does not work using the semantic patch domain model, but works without it.