---
title: "Edit Data"
method: PUT
path: "/data"
tags: ["Device Data"]
---

# Edit Data

`PUT /data`

## Request

- Base URL: `https://api.us-e1.tago.io`
- URL: `https://api.us-e1.tago.io/data`
- Auth: API key in header `Device-Token`
- TypeScript: <https://skmtc.dev/tago/apis/tagoio-api/docs/data/put.ts> (a function with typed inputs; its response is checked against the schema)

Edit specific data stored in the device. Same properties as the Create Data is accepted, edit requires the ID field of the data to be edited.
:::info  
This request is only available when using Mutable Storage on Devices  
:::

## Request body

- object[]
  - `id` string, required
  - `metadata` object
    - `color` string
  - `value` string

## Response `200`

Editing data register by ID

- object
  - `result` string
  - `status` boolean

---

[API](https://skmtc.dev/tago/apis/tagoio-api.md) - [All operations](https://skmtc.dev/tago/apis/tagoio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tago/apis/tagoio-api/revisions/1a281f04cdab?raw)
