Can not call serviceInstanceDeploy, response error "Environment not found"
fewensa
HOBBYOP
2 years ago
I want to use public api to call serviceInstanceDeploy api to redeploy my service, but i got error.
this is my request
```
curl --location 'https://backboard.railway.app/graphql/v2' \
--header 'Authorization: Bearer
1 Replies
fewensa
HOBBYOP
2 years ago
curl --location 'https://backboard.railway.app/graphql/v2' \
--header 'Authorization: Bearer ____MASK____' \
--header 'Content-Type: application/json' \
--data '{"query":"mutation serviceInstanceDeploy($environmentId: String!, $serviceId: String!) {\n serviceInstanceDeploy(environmentId: $environmentId, serviceId: $serviceId)\n}","variables":{"environmentId":"ba8d2eee-fe7c-4881-ad3e-61c774f21541","serviceId":"24f2a5a4-8e41-440b-8e40-9df44bb9a3b0"}}'this is response
{
"errors": [
{
"message": "Environment not found",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"serviceInstanceDeploy"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
],
"data": null
}