-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
try and add rules #87
Conversation
Hi @mosheeshel, thanks for submitting a PR. It looks like you're trying to modify the openapi spec for segment creation to allow for including rules along with the initial POST request. Our segment creation API doesn't allow that. You have to create the segment, then PATCH the rules in. Did I accurately understand your intent? Is there something else we can do to assist you? If not, I'll close this PR next week (feel free to close it before then). |
@vlymar that makes sense. thanks. |
Hi @mosheeshel, did you want an example using the API, or of using the open-api? |
@bjlagman12 Looking for example/docs on using the patchSegment API to add a user rule to a segment (under /rules), in general what values will the |
Hey @mosheeshel below are some examples for patch operations for adding a user or rules to a segment. As mentioned above its important to create a segment then update that segment. add rules to segment
replace rules in segment
delete rules in segment
add user
Please refer to the API docs for information regarding updating a flag to add/ remove users and rules to a feature flag. The docs do a great job explaining the required parameters for successfully updating a featuring flag. Below is a simple example of adding users.
|
This helped me build a working API client, nothing major, check it out - I don't know how much usage this API gets, but I assume anybody who wants to, needs to know the values and options here... |
No description provided.