Skip to content

Instantly share code, notes, and snippets.

@dferber90
Created February 16, 2026 08:19
Show Gist options
  • Select an option

  • Save dferber90/08b96ee9b0990998b4142be642b85f25 to your computer and use it in GitHub Desktop.

Select an option

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
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