Create template.

    Argument:

        server:     TonicDNS API server
        token:      TonicDNS API authentication token
        identifier: Template identifier
        template:   Create template datas

    ContentType: application/json
    x-authentication-token: token

def create_template(server, token, identifier, template):
    """Create template.

    Argument:

        server:     TonicDNS API server
        token:      TonicDNS API authentication token
        identifier: Template identifier
        template:   Create template datas

    ContentType: application/json
    x-authentication-token: token
    """
    method = 'PUT'
    uri = 'https://' + server + '/template/' + identifier
    connect.tonicdns_client(uri, method, token, data=template)