ServerMania logo

Edit Template Group

To edit details of a template group, use the following request:

PUT /settings/image_template_groups/:id.xml
PUT /settings/image_template_groups/:id.json

XML Request Example

curl -i -X PUT -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '<image_template_group><label>zaza</label><mak>1</mak><kms_host>ededde.fe</kms_host><kms_port>5453</kms_port><kms>1</kms><own>0</own><kms_server_label>wqqdwwqw</kms_server_label></image_template_group>' --url http://test/settings/image_template_groups/100.xml

JSON Request Example

curl -i -X PUT -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"image_template_group":{"label":"zaza", "mak":"1","kms_host":"ededde.fe", "kms_port":"5453", "kms":"1", "own":"1", "kms_server_label":"wqwqw"}}' --url http://test/settings/image_template_groups/100.json

Where:

label – the group name

kms_host – KMS server host name

kms_port – KMS server port

kms_server_label – KMS server name

mak - MAK windows licensing type

own - user's own license