ServerMania logo

Edit Recipe Step

To edit a recipe step, use the following request:

PUT /recipes/:recipe_id/recipe_steps/:recipe_step_id.xml
PUT /recipes/:recipe_id/recipe_steps/:recipe_step_id.json

XML Request Example

curl -i -X PUT -u user:serpass http://test/recipes/12/recipe_steps/32.xml -d '<recipe_step><script>echo "123"</script></recipe_step>' -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

curl -i -X PUT -u user:userpass http://test/recipes/12/recipe_steps/32.json -d '{"recipe_step":{"script":"echo abc"}}' -H 'Accept: application/json' -H 'Content-type: application/json'

Where:

script - step code