import { axiosClient } from '../../../api/axiosClient'
import type { AssignPermisosRequest } from './types'

export async function assignPermisos(
  rolCodigo: string,
  payload: AssignPermisosRequest,
): Promise<void> {
  await axiosClient.put(
    `/api/v1/roles/${encodeURIComponent(rolCodigo)}/permisos`,
    payload,
  )
}
