Skip to main content
POST
/
1
/
strategies
/
personalization
curl
curl --request POST \
  --url https://personalization.us.algolia.com/1/strategies/personalization \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'x-algolia-api-key: ALGOLIA_API_KEY' \
  --header 'x-algolia-application-id: ALGOLIA_APPLICATION_ID' \
  --data '{"eventsScoring":[{"score":42,"eventName":"lorem","eventType":"click"}],"facetsScoring":[{"score":42,"facetName":"lorem"}],"personalizationImpact":0}'
{
  "message": "Strategy was successfully updated."
}
Required ACL: recommendation

Authorizations

x-algolia-application-id
string
header
required

Your Algolia application ID.

x-algolia-api-key
string
header
required

Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.

Body

application/json
eventsScoring
object[]
required

Scores associated with each event.

The higher the scores, the higher the impact of those events on the personalization of search results.

facetsScoring
object[]
required

Scores associated with each facet.

The higher the scores, the higher the impact of those events on the personalization of search results.

personalizationImpact
integer
required

Impact of personalization on the search results.

If set to 0, personalization has no impact on the search results.

Required range: 0 <= x <= 100

Response

OK

message
string
required

A message confirming the strategy update.

Example:

"Strategy was successfully updated."

I