Add custom API calls for IP camera

I have a Vivotek IP camera that I have set up to record and email videos when motion is detected. I can enable and disable this service by visiting the a web interface configuration page.

I can also do this with an API call.

curl --request POST \
  --header "Authorization: Basic $CAM_CREDS" \
  --data event_i0_enable='1' \
  http://$CAMERA_IP/cgi-bin/admin/setparam.cgi 

How can I get home assistant to make this API call to enable this service on my camera?