`setEnvVarValue` doesn't use provided `context` parameter

The Netlify API JS client doesn’t use the context parameter even though it is being provided.

await netlifyClient.setEnvVarValue({
   accountId: netlifyUser.account_id,
   key: "TEST",
   siteId: process.env.SITE_ID,
   value: "test",
   context: "all",
 });

The error in the function parseResponse is "{\"error\":\"param is missing or the value is empty: context\"}" but as you can see above its being passed in.

Have you tried context: ['all']?

Yes, I have also tried it as a raw fetch request but I receive the same error message

Is it possible to raise it as a bug ticket? It seems related to this comment from January

I’ve asked the devs to look into it.

1 Like

Hi SavvyBot asked me to reply a message in this thread. Any update? Thanks

Hi @catholica, Regarding updates, we currently don’t have an update yet but the issue is still open with the dev team.
Once there is an update we will definitely update you.

Thanks.