#It's possible to change custom start command via API?

34 messages · Page 1 of 1 (latest)

warped oriole
#

Hello. I have an n8n instance running in queue mode. I have a worker with 30 councurrency working. Everything fine. But I have a nightly one-time task that need to run 15-20k requests... So + concurrency means it will finish earlier...

I would like to know if It's possible to use API to make a change to the custom start command and change it back to what it was before after completing this task also via API.

dark flintBOT
#

Project ID: 53d90c0e-0d69-400d-8c78-aaa211f288a1

ivory basaltBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

warped oriole
#

53d90c0e-0d69-400d-8c78-aaa211f288a1

fiery rover
#

you want the serviceInstanceUpdate mutation

warped oriole
#

And that mutation is specific for the "custom start command" or it's used for more actions?

fiery rover
#

you can use it to update a lot of things on a given service, once of which is the start command

warped oriole
#

ah ok

#

I see now

fiery rover
#

yep that's it

warped oriole
#

one last question

#

When I send the API

#

do I need to also use the API re-deploy

#

Or by sending it Railway will detect that change

#

and will re automatically?

#

(I have re ON)

fiery rover
#

oh good question I forgot, you would need to use the api to redeploy

warped oriole
#

ah

#

Okay

#

The environment id is the same as the project id?

#

I only have production

fiery rover
#

they are very much not the same

warped oriole
#

ok, just double checking because I only have one environment in my project

#

so I though maybe they use the same id

fiery rover
warped oriole
#

but I think I need to know my environment id to send it on the graphql api

fiery rover
warped oriole
#

perfect

#

made it work

#

thanks again

fiery rover
#

awsome!