def create_batch_action(href, expires_in=300, header=None):
    """Create a batch response action."""
    action = {'href': href, 'expires_in': expires_in}
    if header:
        action['header'] = header
    return action