(projectKey: string, data: ISettings)
| 184 | }; |
| 185 | |
| 186 | export const saveSettings = async<T> (projectKey: string, data: ISettings) => { |
| 187 | const url = `${ |
| 188 | API.projectSetting |
| 189 | .replace(':projectKey', projectKey) |
| 190 | }`; |
| 191 | |
| 192 | return request<T>(url, { |
| 193 | method: 'PATCH', |
| 194 | headers: { |
| 195 | ...ApplicationJson() |
| 196 | }, |
| 197 | body: JSON.stringify(data), |
| 198 | }); |
| 199 | }; |
no test coverage detected