ServerMania logo

Swap Recipe Steps Locations

To interchange recipe steps, use the following request:

PUT http://test/recipes/:recipe_id/recipe_steps/:recipe_step_id/move_to/:recipe_step_number.xml
PUT http://test/recipes/:recipe_id/recipe_steps/:recipe_step_id/move_to/:recipe_step_number.json

XML Request Example

curl -i -X PUT -u user:userpass http://test/recipes/12/recipe_steps/21/move_to/31.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

curl -i -X PUT -u user:userpasshttp://test/recipes/12/recipe_steps/21/move_to/31.json -H 'Accept: application/json' -H 'Content-type: application/json'

Where you need to specify the IDs of recipes you want to move in the URL.