---
title: "Partially update personalization"
method: PATCH
path: "/personalizations/{personalizationId}"
tags: ["Personalization"]
---

# Partially update personalization

`PATCH /personalizations/{personalizationId}`

Update several fields of the personalization

## Path parameters

- `personalizationId` integer, required

## Query parameters

- `action` 'ACTIVATE' | 'PAUSE' | 'RESUME' | 'STOP' | 'SCHEDULE' | 'DEACTIVATE' | 'REVERT_TO_DRAFT'

## Request body

- PersonalizationUpdateIO
  - `baseURL` string — URL of the website to load in editor and preview mode
  - `cssCode` string — CSS script to be integrated into the source code of the page
  - `description` string — Description of the personalization
  - `globalScript` string — JavaScript code that will be applied only to the selected personalization and executed in the end of the Global custom script
  - `isArchived` boolean — Indicates if the personalization has been archived
  - `javaScriptCode` string — JavaScript snippet to be integrated into the source code of the page
  - `mainGoalId` string — Id of the main goal being used by the personalization
  - `metaReadOnly` string — Personalization in READ_ONLY mode for sub-personalization
  - `name` string — Name of the personalization
  - `scenarios` Scenario[] — Conditions for displaying this personalizationbased on previously shown personalizations.
    - `id` integer
    - `scenarioConfiguration` 'NO_OTHER_PERSO' | 'AT_LEAST_ONE_OTHER_PERSO' | 'NUMBER_OF_OTHER_PERSOS' | 'ALL_OTHER_PERSOS' | 'ID_PERSO'
    - `scenarioDisplayOthersPersos` boolean
    - `scenarioDisplayPerso` boolean
    - `scenarioIdPerso` integer
    - `scenarioNumberOtherPersos` integer
    - `scenarioNumberOtherPersosMatchType` 'EQUAL' | 'GREATER' | 'LOWER' | 'GREATER_THAN_EQUAL' | 'LOWER_THAN_EQUAL'
    - `scenarioVisitsConfiguration` 'SAME_PAGE' | 'CURRENT_VISIT' | 'PREVIOUS_VISIT' | 'ALL_VISITS'
  - `tags` string[] — List of tags associated with this personalizations
  - `targetingRule` TargetingRule — Targeting Rule defines the conditions for displaying content to specific user groups based on segments and triggers
    - `id` integer — Unique Id of the targeting rule
    - `segmentConfiguration` 'ALL_VISITORS' | 'AUTOPROMO_AUTODEFINED' | 'GRAPHICAL_PAGES' | 'HEAT_SLICE' | 'PAGE' | 'SAVED_TEMPLATE' | 'SITE' | 'URL' — Configuration defining how the segment should be applied
    - `segmentId` integer — Id of the associated segment (user group) for targeting. If segment is deprecated, no trigger will be available for this rule.
    - `siteId` integer, required — Id of the project this targeting rule belongs to
    - `targetingConfigurationParam` string — Additional parameters for trigger configuration. For SAVED_TEMPLATE/HEAT_SLICE - contains segment Id. For PAGE - contains full URL. For URL - contains URL fragment.
    - `triggerConfiguration` 'ALL_VISITORS' | 'AUTOPROMO_AUTODEFINED' | 'GRAPHICAL_PAGES' | 'HEAT_SLICE' | 'PAGE' | 'SAVED_TEMPLATE' | 'SITE' | 'URL' — Configuration defining how the trigger should be applied. ALL_VISITORS configuration is not allowed for this trigger type
    - `triggerId` integer — Id of the associated trigger (activation condition)

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `423` — Locked
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api.md) · [All operations](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kameleoon/openapi-definition-for-automation-api/versions/09f2abcea0b5/schema)
