Need help with a curl command

Hi folks,

I need help I am trying to translate a curl into ansible YAML and the curl supposed to return 201 or 200