( endpoint: string, body?: Record<string, unknown> | string, headers?: Record<string, string>, )
| 150 | * Convenience function for PUT requests |
| 151 | */ |
| 152 | export async function put<T = any>( |
| 153 | endpoint: string, |
| 154 | body?: Record<string, unknown> | string, |
| 155 | headers?: Record<string, string>, |
| 156 | ): Promise<ApiResponse<T>> { |
| 157 | return makeAuthenticatedRequest<T>(endpoint, { |
| 158 | method: "PUT", |
| 159 | body, |
| 160 | headers, |
| 161 | }); |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * Convenience function for DELETE requests |
no test coverage detected