Public API to set Env variables
Anonymous
OP
a year 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
a year 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
a year ago
account token: authorization: bearer <token>
project token: project-access-token: <token>
domehane
a year ago
i hope this was clear