(projectKey: string, data: IToggle)
| 87 | }; |
| 88 | |
| 89 | export const createToggle = async (projectKey: string, data: IToggle) => { |
| 90 | const url = `${ |
| 91 | API.createToggleURI |
| 92 | .replace(':projectKey', projectKey) |
| 93 | }`; |
| 94 | |
| 95 | return request(url, { |
| 96 | method: 'POST', |
| 97 | headers: { |
| 98 | ...ApplicationJson() |
| 99 | }, |
| 100 | body: JSON.stringify(data), |
| 101 | }); |
| 102 | }; |
| 103 | |
| 104 | export const editToggle = async (projectKey: string, toggleKey: string, data: IEditToggleParams) => { |
| 105 | const url = `${ |
no test coverage detected