(projectKey: string, environmentKey: string, toggleKey: string, data: ITargetingParams)
| 53 | }; |
| 54 | |
| 55 | export 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 | |
| 72 | export const approveToggle = async (projectKey: string, environmentKey: string, toggleKey: string, data: ITargetingParams) => { |
| 73 | const url = `${ |
no test coverage detected