MCPcopy Create free account
hub / github.com/firebase/firebase-tools / setRulesetLabels

Function setRulesetLabels

src/database/metadata.ts:86–101  ·  view source on GitHub ↗
(databaseName: string, labels: LabelIds)

Source from the content-addressed store, hash-verified

84}
85
86export 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}

Callers

nothing calls this directly

Calls 2

realtimeOriginFunction · 0.90
handleErrorResponseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…