ServerMania logo

Add Child Recipe Group

To create a child recipe group, use the following request:
POST /recipe_groups.xml
POST /recipe_groups.json

XML Request Example:

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '<recipe_group><label>zaza</label><parent_id>100</parent_id></recipe_group>' --url http://test/recipe_groups.xml

JSON Request Example:

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"recipe_group":{"label":"zaza_ch1", "parent_id":"100"}}' --url http://test/recipe_groups.json


label - ID of a child group

parent_id - ID of the target recipe group