Trying to start my service using the API, but i can't find the correct service id. uuid won't work.
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",
      },
    });
$10 Bounty

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! slightly_smiling_face emoji


Loading...