import requests


def send_request(body, url, token):
    """
    Sends a request to a SOS using POST method
    :param body: body of the request formatted as JSON
    :param token: Authorization Token for an existing SOS.
    :param url: URL to the endpoint where the SOS can be accessed
    :return: Server response to response formatted as JSON
    """

    # Add headers:
    headers = {'Authorization': str(token), 'Accept': 'application/json'}
    response = requests.post(url, headers=headers, json=body)

    response.raise_for_status()  # raise HTTP errors

    return response