Creating worker with api
Hello, I want to create a worker with api and I want a specific code to be entered into the created worker, which apis should I use for these operations I mentioned
![](https://cdn.answeroverflow.com/1126156626441814158/Ekran_goruntusu_2023-07-05_171912.png)
![](https://cdn.answeroverflow.com/1126156627029008494/Ekran_goruntusu_2023-07-05_172059.png)
![](https://cdn.answeroverflow.com/1126156627343573025/Ekran_goruntusu_2023-07-05_172146.png)
13 Replies
You want to create a worker from a worker?
Why are you using the API? Why did you include a screenshot of the quick editor?
I want to create a worker with Cloudflare api and I want to add (edit) code to this worker with api
The images are for easier understanding of the process I want to do.
Where are you getting stuck?
I don't know exactly which api connections to use
Worker Script
You can use at the code that Wrangler uses to prepare the request, that'll always be the most up to date
I will use this link to create Worker, right
![](https://cdn.answeroverflow.com/1126159868651393166/image.png)
I think so yea
Thank you, so how can I upload code with the worker api I created?
So which api connection should I use for that
Can you please clarify what you mean?
I will create worker using this link
My other question is I want to upload a generated workers code
Upload Worker Module is a link used to edit an existing Worker
I want to create a new worker api connection
![](https://cdn.answeroverflow.com/1126164907377832006/image.png)
Uploading a worker with a different name will create a new script
Thank you.