Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Children Display
alltrue
styleh3
pageSuperb Cloud API

PUT /recipes/:recipe_id/recipe_steps/:recipe_step_id 

Edits a recipe step

Sections:

Table of Contents
maxLevel4
minLevel2
includeResponse.*|JSON.*|XML.*

Request Parameters

script - step code

Response Parameters

Info

204 status returned on success 

JSON Request example

Code Block
languagebash
themeRDark
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

Code Block
languagebash
themeRDark
 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'