import { axiosClient } from '@/api/axiosClient'
import type { MedioDetail, UpdateMedioRequest } from '../types'

export async function updateMedio(id: number, payload: UpdateMedioRequest): Promise<MedioDetail> {
  const response = await axiosClient.put<MedioDetail>(`/api/v1/admin/medios/${id}`, payload)
  return response.data
}
