File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ import { Api } from "@reflag/rest-api-sdk";
1919
2020const api = new Api ({
2121 accessToken: process .env .REFLAG_API_KEY ,
22- // Optional when using non-default host:
23- // basePath: "https://app.reflag.com/api",
2422});
2523```
2624
@@ -128,7 +126,7 @@ await api.updateUserFlags({
128126 appId: " app-123" ,
129127 envId: " env-456" ,
130128 userId: " user-1" ,
131- updates: [{ flagKey: " new-checkout" , value : true }],
129+ updates: [{ flagKey: " new-checkout" , specificTargetValue : true }],
132130});
133131```
134132
@@ -145,7 +143,7 @@ await api.updateCompanyFlags({
145143 appId: " app-123" ,
146144 envId: " env-456" ,
147145 companyId: " company-1" ,
148- updates: [{ flagKey: " new-checkout" , value : null }],
146+ updates: [{ flagKey: " new-checkout" , specificTargetValue : null }],
149147});
150148```
151149
You can’t perform that action at this time.
0 commit comments