500 Internal Server Error on API endpoints setEnvVarValue (PATCH) & updateEnvVar (PUT)

The question I had left was about this endpoint:
https://open-api.netlify.com/#tag/environmentVariables/operation/setEnvVarValue

Site_id shouldn’t be in the JSON indeed, the library I’m using is doing that. But even if its not there, this endpoint is always failing whenever I send context=all.

{account_id} is my accountId on my side
{access_token} is my accessToken on my side
{site_id} is my siteId on my side

PATCH: https://api.netlify.com/api/v1/accounts/{account_id}/env/TEST_ENV_VAR?site_id={site_id}

Headers:
Accept: application/json
Authorization: Bearer {access_token}

Body:

{"value":"devtest","context":"all"}

Response:

{“code”:500,“message”:“Internal server error”}