Watch a config flag
Streams the current ruleset etag and each changed revision as SSE.
Streams the current ruleset etag and each changed revision as SSE. Reconnect with if_none_match or Last-Event-ID to skip the held revision.
- Path
GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_flags:watch - Scope
config:read - Effect
read— nothing is written. - Collection config_flags
- Query
if_none_match
Request
| Field | Type | What it is |
|---|---|---|
parent | string | The environment whose flag and segment revisions are streamed. Required. |
if_none_match | string | The last received etag; only a different revision is sent. |
Response
| Field | Type | What it is |
|---|---|---|
etag | string | Changes whenever a flag or segment changes. |
Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.
Every error arrives in the body Errors describes.
Examples
curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/config_flags:watch" \
-H "Authorization: Bearer $SYLPHX_API_KEY"