ServerMania logo

Attach Template to Group

To attach a template to a group, use the following request:

POST /settings/image_template_groups/:image_template_group_id/relation_group_templates.xml
POST /settings/image_template_groups/:image_template_group_id/relation_group_templates.json

XML Request Example

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '<relation_group_template><template_id>26</template_id><price>50</price></relation_group_template>' --url http://test/settings/image_template_groups/105/relation_group_templates.xml

JSON Request Example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"relation_group_template":{"template_id":"26", "price":"50"}}' --url http://test/settings/image_template_groups/105/relation_group_templates.json

Returns HTTP 201 response on success.