import client from '../client' ; import { AxiosRequestConfig } from 'axios' ; export interface UpdateArgs { folderIds : string [ ] ; folder : Record < string , any > ; } export async function folderUpdateMany ( opts , context ) { const { folderIds , folder } = opts || { } ; if ( ! folderIds ) throw new Error ( 'You should provide `folderIds`' ) ; const res = await client . put ( `/folders/${ folderIds . join ( ',' ) }` , folder , context ) ; return res ?. data ?. data ; }