ServerMania logo

Attach Recipe to Recipe Group

To attach recipe to the recipe group, use the following request:
POST /recipe_groups/:recipe_group_id/recipe_group_relations.xml
POST /recipe_groups/:recipe_group_id/recipe_group_relations.json

XML Request Example


curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '<recipe_group_relation><recipe_id>id</recipe_id></recipe_group_relation>' --url http://test/recipe_groups/13/recipe_group_relations.xml

JSON Request Example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"recipe_group_relation":{"recipe_id":"id"}}' --url http://test/recipe_groups/13/recipe_group_relations.json