To get a basic understanding of this function you should first read Service Templates .
Create a service template
First, we create a service template via the API using the examples from Service Templates .
...
The answer is the id of the created service template.
Deploying a service with the created service template
Required variables must be entered in the body like target or name. For the blocks a "block_" must precede.
...