ServerMania logo

Add Child Template Group

To add a child template group, use the following request: 

POST http://test/settings/image_template_groups.xml
POST http://test/settings/image_template_groups.json

XML Request Example

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:password -d '<image_template_group><user_id>2</user_id><label>zaza</label><parent_id>50</parent_id><mak>1</mak><kms_host>ededde.fe</kms_host><kms_port>5453</kms_port><kms>1</kms><own>0</own><kms_server_label>enother</kms_server_label></image_template_group>' --url http://test/settings/image_template_groups.xml

JSON Request Example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:password -d '{"image_template_group":{"user_id":"2", "label":"zaza_ch1", "parent_id":"51", "mak":"1","kms_host":"ededde.fe", "kms_port":"5453", "kms":"1", "own":"1", "kms_server_label":"wqwqw"}}' --url http://test/settings/image_template_groups.json

Where:

label * – the name of the child template group
mak – MAK windows licensing type
own – user’s own license for Windows licensing
kms – KMS Windows licensing type
kms_server_label – name of the KMS licensing server; required parameter if the the KMS licensing type was selected
kms_host - KMS server host name; required parameter if the the KMS licensing type was selected
kms_port – KMS server port; required parameter if the the KMS licensing type was selected
user_id * – user, to whom this group belongs
parent_id *  the ID of the parent template group


To edit or delete a child group, use the same requests as for template groups.