(databaseName: string, labels: LabelIds)
| 84 | } |
| 85 | |
| 86 | export async function setRulesetLabels(databaseName: string, labels: LabelIds): Promise<void> { |
| 87 | const localApiClient = new Client({ |
| 88 | urlPrefix: utils.addSubdomain(realtimeOrigin(), databaseName), |
| 89 | }); |
| 90 | const response = await localApiClient.put<LabelIds, void>( |
| 91 | `/.settings/ruleset_labels.json`, |
| 92 | labels, |
| 93 | { |
| 94 | resolveOnHTTPError: true, |
| 95 | }, |
| 96 | ); |
| 97 | if (response.status === 200) { |
| 98 | return response.body; |
| 99 | } |
| 100 | return handleErrorResponse(response); |
| 101 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…