def _get_request_add_conditional_format(rule):
    """
    Get request to conditionally format cells.
    :param rule: dict form of rule to format cells.
    :return: dict form of request.
    """

    request = {
        "addConditionalFormatRule": {
            "rule": rule,
            'index': 0
        }
    }

    return request