---
title: "AgentDataVariable"
method: PATCH
path: "/agents/{agentId}/data-variables/{publicId}"
tags: ["AgentDataVariable"]
---

# AgentDataVariable

`PATCH /agents/{agentId}/data-variables/{publicId}`

## Path parameters

- `agentId` string, required
- `publicId` string, required

## Headers

- `Api-Version` 2, required
- `Api-Application` string, required
- `Api-Company` string, required
- `Api-Branding` string

## Request body

- object
  - `name` string
  - `address` string
  - `slug` string
  - `factor` string, nullable
  - `unit` string, nullable
  - `maxStringLength` integer, nullable
  - `custom` object

## Response `200`

Success response

- object
  - `status` string, required
  - `type` string, required
  - `data` object, nullable, required

## Other responses

- `4XX` — 4XX error response

---

[API](https://skmtc.net/ixon/apis/ixon-api.md) · [All operations](https://skmtc.net/ixon/apis/ixon-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ixon/ixon-api/revisions/7875dc33d41f/schema)
