Created
February 16, 2026 08:19
-
-
Save dferber90/08b96ee9b0990998b4142be642b85f25 to your computer and use it in GitHub Desktop.
You can use the segment slug instead of the segment id as well
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl --request PATCH \ | |
| --url https://api.vercel.com/v1/projects/:projectId/feature-flags/segments/:segmentId \ | |
| --header 'Authorization: Bearer xxxx' \ | |
| --header 'Content-Type: application/json' \ | |
| --data '{ | |
| "operations": [ | |
| { | |
| "action": "add", | |
| "field": "include", | |
| "entity": "user", | |
| "attribute": "userId", | |
| "value": { | |
| "value": "user-123", | |
| "note": "Added for beta testing" | |
| } | |
| } | |
| ] | |
| }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment