pkihlberg
HOBBYOP
5 months ago
I'm creating a node js server in my project that that will start an other service in the same project using your API but the service id won't work.
const res = await fetch(`https://backboard.railway.app/v1/service/${MC_SERVICE_ID}/start`, {
method: "POST",
headers: {
Authorization: `Bearer ${RAILWAY_API_TOKEN}`,
"Content-Type": "application/json",
},
});1 Replies
colinrm000
HOBBY
5 months ago
You’re calling a private REST endpoint. Use the public GraphQL API. To “start/restart” a service, either restart its latest deployment or create a fresh deployment! 