(projectKey: string, toggleKey: string, data: IEditToggleParams)
| 102 | }; |
| 103 | |
| 104 | export const editToggle = async (projectKey: string, toggleKey: string, data: IEditToggleParams) => { |
| 105 | const url = `${ |
| 106 | API.editToggleURI |
| 107 | .replace(':projectKey', projectKey) |
| 108 | .replace(':toggleKey', toggleKey) |
| 109 | }`; |
| 110 | |
| 111 | return request(url, { |
| 112 | method: 'PATCH', |
| 113 | headers: { |
| 114 | ...ApplicationJson() |
| 115 | }, |
| 116 | body: JSON.stringify(data), |
| 117 | }); |
| 118 | }; |
| 119 | |
| 120 | export const offlineToggle = async (projectKey: string, toggleKey: string) => { |
| 121 | const url = `${ |
no test coverage detected