Skip to content

Commit 6400100

Browse files
committed
Update README for renamed specificTargetValue field and remove basePath comment
1 parent 6dac9b8 commit 6400100

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/rest-api-sdk/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import { Api } from "@reflag/rest-api-sdk";
1919

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

0 commit comments

Comments
 (0)