---
title: "Update custom data"
method: PUT
path: "/custom-datas/{customDataId}"
tags: ["CustomData"]
---

# Update custom data

`PUT /custom-datas/{customDataId}`

Update the custom data belonging to this Id

## Path parameters

- `customDataId` integer, required

## Request body

- CustomData
  - `adobeAnalyticsVariableName` string — Variable name of the Adobe Analytics
  - `advancedProposedValues` string — Enables to set values for targeting conditions in the form of a JS table
  - `createdById` integer — Account Id of the creator of the custom data
  - `customEvalCode` string — Custom code that will be executed
  - `dateCreated` string, date-time — Date and time a record is created
  - `dateModified` string, date-time — Date and time a record is modified
  - `description` string — Description of the custom data
  - `format` 'BOOLEAN' | 'NUMBER' | 'STRING' — Custom data value format
  - `gtmVariableName` string — Variable name of the Google Tag Manager
  - `id` integer — Unique Id of the custom data.
  - `index` integer
  - `isConstant` boolean — Indicates if the custom data is a constant
  - `isFiltrableVentilable` boolean — Indicates if custom data should be filtered and marked as available for breakdown
  - `isLearnable` boolean — Indicates if this data should be included in Kameleoon machine learning
  - `isLocalOnly` boolean — Indicates if the custom data is only stored on the user's device.
  - `method` 'ADOBE_ANALYTICS' | 'CLIENT' | 'CUSTOM_CODE' | 'GTM' | 'SDK' | 'TC' | 'TEALIUM', required — Method through which a custom data will be transmitted
  - `modificationDate` string, date-time — Date and time a record is modified (Deprecated, use dateModified instead)
  - `name` string, required — Name of the custom data
  - `siteCode` string — System generated unique code to identify a website. This is an optional field that is included in the request body
  - `siteId` integer, required — Id of the project this record belongs
  - `tags` string — Tags that belong to this record
  - `tcVariableName` string — Name of the tag commander data layer, if it is selected as a transmission method
  - `tealiumVariableName` string — Name of the Tealium, if it is selected as a transmission method
  - `type` 'COUNT_LIST' | 'LIST' | 'UNIQUE' — Custom data type. Custom data can be presented as a single value (UNIQUE), or a list of values (LIST), ​​or a countable list of values (COUNT_LIST)

## 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)
