def METHOD_NAME(app_label, pk, data, data_hash):
    """
    Does a post request to the specified API endpoint on chahub with the inputted data.
    """
    if not settings.CHAHUB_API_URL:
        raise ChahubException("CHAHUB_API_URL env var required to send to Chahub")
    if not settings.CHAHUB_API_KEY:
        raise ChahubException("No ChaHub API Key provided")
    obj = get_obj(app_label, pk)
    try:
        resp = _send(obj.get_chahub_endpoint(), data)
    except requests.exceptions.RequestException:
        resp = None
    if resp and resp.status_code in (200, 201):
        logger.info(f"ChaHub :: Received response {resp.status_code} {resp.content}")
        obj.chahub_timestamp = timezone.now()
        obj.chahub_data_hash = data_hash
        obj.chahub_needs_retry = False
    else:
        status = getattr(resp, 'status_code', 'N/A')
        body = getattr(resp, 'content', 'N/A')
        logger.info(f"ChaHub :: Error sending to chahub, status={status}, body={body}")
        obj.chahub_needs_retry = True
    obj.save(send=False)