This API is called to invoke the recommendation rating computation process in the recommendation engine. The goal is to input a CSV file containing the known ratings for various items by subscribers and compute their expected ratings for all the assets. The computed rating data is stored as a CSV file and the access URL is returned on completion.
POST DATA:
1 2 3 4 5 6 |
{ "Catalog": "<CSV-URL>", "Callback": "<Callback-URL>", //Optional "RatingData": "<CSV-URL>", //this is the processed_file URL from Encode operation "RatingAlgorithm": "CF1" } |
Notes:
1 2 3 4 5 |
{ "status": "completed", "id": "<request_id>", "output_url": "<file_url>" } |
In case of failure, a JSON with error message is POST to the callback endpoint:
1 2 3 4 5 |
{ "status": "error", "id": "<request_id>", "msg": "<error message>" } |
1 2 3 4 |
{ "status": "success", "id": "<request_id>" } |
1 2 3 4 |
{ "status":"error", "msg": "<error message>" } |