Public API to set Env variables
Anonymous
PROOP
6 months ago
I am not able to create environment variables in service of Docker type using Public API but I can create variable using railway cli and with project token not with account token
3 Replies
domehane
FREE
6 months ago
the issue is the header format. account tokens need authorization: bearer <token> but project tokens need project-access-token: <token> header instead. thats why cli works with project token but your account token doesnt youre probably using the wrong header name. switch to the right header for whichever token type youre using and it should work fine for docker services
domehane
FREE
6 months ago
account token: authorization: bearer <token>
project token: project-access-token: <token>
domehane
FREE
6 months ago
i hope this was clear