Page tree
Skip to end of metadata
Go to start of metadata

API Essentials

API Key Generation

Autoscaling

Backups

Credit

DNS

Firewall Rules

Flex Cloud VM Control

Getting Started with Superb Flex Cloud

IP Addresses

Logs

Network Interfaces

Recipes

SSH Keys

Templates

Test Route

Troubleshooting API Issues

Viewing Activity Logs

Virtual Server Operating Systems

Virtual Servers

VS Disks

PUT /recipes/:recipe_id/recipe_steps/:recipe_step_id 

Edits a recipe step

Sections:

Request Parameters

script - step code

Response Parameters

204 status returned on success 

JSON Request example

curl -i -X PUT -u user:userpass <api_url>/recipes/:recipe_id/recipe_steps/:recipe_step_id.json -d '{"recipe_step":{"script":"echo abc"}}' -H 'Accept: application/json' -H 'Content-type: application/json'

XML Request example

 curl -i -X PUT -u user:userpass <api_url>/recipes/:recipe_id/recipe_steps/:recipe_step_id.xml -d '<recipe_step><script>echo "123"</script></recipe_step>' -H 'Accept: application/xml' -H 'Content-type: application/xml'
  • No labels