Parameter | Type | Required? | Description |
---|---|---|---|
sending | Hash | yes | A full sending entity. See parameters of Predict Sending KPI |
date_start | String | yes | Start date of prediction. Format: YYYY-MM-DD |
date_end | String | yes | End date of prediction. Format: YYYY-MM-DD |
interval | Integer | yes | Interval of prediction in seconds as an integer (e.g. 86400) |
When successful, returns:
{
"predictions": [
{
"prediction": 0.1,
"timestamp": "2020-01-01 00:00:00"
},
{
"prediction": 0.2,
"timestamp": "2020-01-01 01:00:00"
},
{
"prediction": 0.3,
"timestamp": "2020-01-01 02:00:00"
}
]
}
curl --location --request POST 'https://api.mpc.dev.placewise.com/v1/ml/sending/predict_sending_kpi_in_date_range' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'X-Customer;' \
--header 'Authorization;' \
--header 'X-Client-Authorization: '
{}