Skip to main content
PUT
/
2
/
config
curl
curl --request PUT \
  --url https://ai-personalization.eu.algolia.com/2/config \
  --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 '{"indices":[{"index":"lorem","affinities":["lorem"],"source":{"type":"insights","events":{"viewDetails":[{"type":"view","subtype":"addToCart","name":"lorem"}],"viewListing":[{"type":"view","subtype":"addToCart","name":"lorem"}],"addToCart":[{"type":"view","subtype":"addToCart","name":"lorem"}],"purchase":[{"type":"view","subtype":"addToCart","name":"lorem"}]}}}],"personalizationReRanking":"none","profileType":"basic","features":{"realtime":{"enabled":true}}}'
{
  "status": 123,
  "errors": [
    {
      "code": "<string>",
      "index": "<string>",
      "message": "<string>"
    }
  ],
  "warnings": [
    {
      "code": "<string>",
      "index": "<string>",
      "message": "<string>"
    }
  ],
  "message": "<string>"
}
Required ACL: search, browse, 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
indices
configurationParametersObject · object[]
required
personalizationReRanking
enum<string>
required

The impact that personalization has on the re-ranking of search results.

Available options:
none,
low,
medium,
high,
maximum
profileType
enum<string>
required

The type of user profiles to generate.

Basic profiles are based on past behaviors, ensuring search results align with previous interests.

Available options:
basic
features
object
required

Response

OK

status
number
required
errors
object[]
required
warnings
object[]
required
message
string
required
I