Script service 400 response

So I’ve got a server making http requests to homeassistant, and noticed recently the post requests to activate scripts have stopped working.

I can activate lights just fine with:

curl -X POST -H "Authorization: Bearer MYTOKEN" \
       -H "Content-Type: application/json" \
       -d '{"entity_id": "light.light_name"}' \
       https://my.hass.url/api/services/light/turn_on

but for my requests to activate a script that used to work:

curl -X POST -H "Authorization: Bearer MYTOKEN" \
       -H "Content-Type: application/json" \
       -d '{"entity_id": "script.script_id"}' \
       https://my.hass.url/api/services/script/turn_on

has started returning me a 400 error, anyone got any insight as to why this might be?