Curl as a template button

Hello, i have tried to follow the suggestion in this older post.

https://community.home-assistant.io/t/input-button-helper-to-run-curl-command/472086/2

template:
  - button:
      - name: "Curl_sleep_o_l"
        unique_id: alt_sleep_lan
        press:
          - service: shell_command.curl 'http://192.168.1.10:8009/sleep/'

However when i do this i get error message in the logs stating

Invalid config for [template]: Service shell_command.curl 'http://192.168.1.10:8009/sleep/' does not match format <domain>.<name> for dictionary value @ data['button'][0]['press'][0]['service']. 

The curl command is working correctly inside the HA terminal
Can anyone point me in the right direction, i cannot make sense of the log error message. :pray:

You have to create the curl command via the shell command integration, like jazzyisj pointed out.