---
title: "Partially update the custom data"
method: PATCH
path: "/custom-datas/{customDataId}"
tags: ["CustomData"]
---

# Partially update the custom data

`PATCH /custom-datas/{customDataId}`

Update several fields of the custom data. To use optionalFields check out [this guide](../../developer-docs/apis/automation-api-rest/tutorials/using-optional-fields-in-queries).

## Path parameters

- `customDataId` integer, required

## Query parameters

- `optionalFields` string[]

## Request body

- CustomDataUpdateIO
  - `adobeAnalyticsVariableName` string — Variable name of the Adobe Analytics
  - `advancedProposedValues` string — Enables to set values for targeting conditions in the form of a JS table
  - `customEvalCode` string — Custom code that will be executed
  - `description` string
  - `gtmVariableName` string — Variable name of the Google Tag Manager
  - `isConstant` boolean — Indicates whether the custom data is a constant
  - `isFiltrableVentilable` boolean — Indicates whether custom data should be filtered and marked as available for breakdown
  - `isLocalOnly` boolean — Indicates whether the data is only stored on the user’s device.
  - `learnable` boolean — Indicates whether this data should be included in Kameleoon machine learning
  - `method` 'ADOBE_ANALYTICS' | 'CLIENT' | 'CUSTOM_CODE' | 'GTM' | 'SDK' | 'TC' | 'TEALIUM' — Method through which a custom data will be transmitted
  - `name` string — Name of the given custom data.
  - `tags` string — Field to store tags that are associated with this record
  - `tcVariableName` string — Variable name for the tag commander data layer, if it is selected as a transmission method
  - `tealiumVariableName` string — Variable name for the Tealium, if it is selected as a transmission method
  - `type` 'BOOLEAN' | 'COUNT_LIST' | 'LIST' | 'NUMBER' | 'STRING' | 'UNIQUE' — Type of data to be retrieved

## 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/revisions/09f2abcea0b5/schema)
