MCPcopy Create free account
hub / github.com/FeatureProbe/FeatureProbe / saveToggle

Function saveToggle

ui/src/services/toggle.ts:55–70  ·  view source on GitHub ↗
(projectKey: string, environmentKey: string, toggleKey: string, data: ITargetingParams)

Source from the content-addressed store, hash-verified

53};
54
55export const saveToggle = async (projectKey: string, environmentKey: string, toggleKey: string, data: ITargetingParams) => {
56 const url = `${
57 API.targetingURI
58 .replace(':projectKey', projectKey)
59 .replace(':environmentKey', environmentKey)
60 .replace(':toggleKey', toggleKey)
61 }`;
62
63 return request(url, {
64 method: 'PATCH',
65 headers: {
66 ...ApplicationJson()
67 },
68 body: JSON.stringify(data),
69 });
70};
71
72export const approveToggle = async (projectKey: string, environmentKey: string, toggleKey: string, data: ITargetingParams) => {
73 const url = `${

Callers 1

PublishModalFunction · 0.90

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected