cURL
curl --request POST \
--url http://studio.premai.io/api/v1/public/recommendations/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "http://studio.premai.io/api/v1/public/recommendations/generate"
payload = { "snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({snapshot_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('http://studio.premai.io/api/v1/public/recommendations/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Recommendations API
Generate Recommendations
Kick off model recommendations for a dataset snapshot.
POST
/
api
/
v1
/
public
/
recommendations
/
generate
cURL
curl --request POST \
--url http://studio.premai.io/api/v1/public/recommendations/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "http://studio.premai.io/api/v1/public/recommendations/generate"
payload = { "snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({snapshot_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('http://studio.premai.io/api/v1/public/recommendations/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Was this page helpful?
⌘I