2 months 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
}
} 2 Replies
2 months 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!
2 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 • about 2 months ago