how to get ge workspace id or team id
horilla-opensource
PROOP

a year ago

i want to deploy a template using the api but it's very dificult to use this api no proper error response so i don't know how to find what's wrong with the request

URL: https://backboard.railway.com/graphql/v2

mutation templateDeploy($input: TemplateDeployInput!) {
  templateDeploy(input: $input) {
    __typename
    projectId 
    workflowId
  }
}

{
  "input": {
    "templateCode": "celebrated-expression",
    "teamId": null
  }
} 
Solved$10 Bounty

Pinned Solution

10 months ago

You can find your workspace ID can be found in the command pallete which you can bring up using ctrl/cmd + k , then just click Copy Active Workspace ID

heads up btw, the mutation templateDeploy has been deprecated, you'll want to use templateDeployV2 instead

You can use templateDeployV2 like so (example):

mutation DeployTemplate {
  templateDeployV2(input: {workspaceId: "workspaceid", environmentId: "envid", projectId: "projectid", templateId: "templateid", serializedConfig: {} }) {
    projectId
    workflowId
  }
}

project id, environment id, and workspace id, can all be found using the method I described above (through command pallette)

Attachments

2 Replies

Railway
BOT

a year ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


10 months ago

You can find your workspace ID can be found in the command pallete which you can bring up using ctrl/cmd + k , then just click Copy Active Workspace ID

heads up btw, the mutation templateDeploy has been deprecated, you'll want to use templateDeployV2 instead

You can use templateDeployV2 like so (example):

mutation DeployTemplate {
  templateDeployV2(input: {workspaceId: "workspaceid", environmentId: "envid", projectId: "projectid", templateId: "templateid", serializedConfig: {} }) {
    projectId
    workflowId
  }
}

project id, environment id, and workspace id, can all be found using the method I described above (through command pallette)

Attachments


Status changed to Solved dev 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...