def save(server_context, schema_name, query_name, domain, container_path=None):
    # type: (ServerContext, str, str, Domain, str) -> None
    """
    Saves the provided domain design
    :param server_context: A LabKey server context. See utils.create_server_context.
    :param schema_name: schema of domain
    :param query_name: query name of domain
    :param domain: Domain to save
    :param container_path: labkey container path if not already set in context
    :return:
    """
    url = server_context.build_url('property', 'saveDomain.api', container_path=container_path)

    headers = {
        'Content-Type': 'application/json'
    }

    payload = {
        'domainDesign': domain.to_json(),
        'queryName': query_name,
        'schemaName': schema_name
    }

    return server_context.make_request(url, json_dumps(payload), headers=headers)
Saves the provided domain design
    :param server_context: A LabKey server context. See utils.create_server_context.
    :param schema_name: schema of domain
    :param query_name: query name of domain
    :param domain: Domain to save
    :param container_path: labkey container path if not already set in context
    :return: