how to post different payload for different rest api using uri module in ansible playbook with loop

Hi Team,

I am new to ansible, could you help me how to post different payload for different rest api using uri module in ansible playbook with loop(to reduce code)

Thanks in advance.

Regards
Ahamed

You want to pass different variables in loop?
You can use with_dict option.