Add missing args in api head method
What does this MR do and why?
Fixes regression introduced by !147221 (merged)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.