You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f3dcdae
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/management-sdk/README.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Typed SDK for interacting with Reflag’s Management API.
4
4
5
5
Use `@reflag/management-sdk` to programmatically manage feature flags such as listing flags, and enabling or disabling them for specific users or companies.
6
6
7
-
For a practical example of what you can build, see the [Customer Admin Panel](https://github.com/reflagcom/javascript/blob/main/packages/rest-api-sdk/examples/customer-admin-panel/README.md) example app.
7
+
For a practical example of what you can build, see the [Customer Admin Panel](https://github.com/reflagcom/javascript/blob/main/packages/management-sdk/examples/customer-admin-panel/README.md) example app.
8
8
9
9
## Installation
10
10
@@ -207,6 +207,36 @@ await api.deleteCompany({
207
207
});
208
208
```
209
209
210
+
### Create a user and immediately enable a flag
211
+
212
+
Use `upsertUser` when the user must be available to a targeting request immediately,
213
+
rather than relying on asynchronous runtime tracking ingestion. Await the upsert
214
+
before enabling the flag. The flag must already exist, and the Management API key
215
+
needs both `write:entities` and `write:flag:targeting` scopes.
0 commit comments