Variables are managed per project: one entry per key, with a value in each environment that has it. This recipe pushes a set of variables, creating the new ones and updating the others. It needs a developer key.
Redeploy to apply
A deployment reads its variables when it's built. After changing them, deploy again (or redeploy a GitHub deployment) for the new values to take effect.
A secret's value never comes back, from this route or any other: you can tell a secret exists, never what it holds.
Create new keys
Create variables sets up to 100 keys at once, with the same value in each listed environment. It's all or nothing: if one key already exists in one of the environments, nothing is written and the 409 lists every conflict.