import json


def payload_from_api_post_event(event):
    """Maps an API event to the expected payload"""
    # event = {
    #    'timeserie1': [(1, 100), (2, 100)],
    #    'timeserie2': [(3, 100), (4, 100)],
    # }
    body = json.loads(event['body'])
    return body