---
title: Update
url: https://www.tines.com/docs/api/cases/metadata/update-1-0/
updated: 2024-04-23T08:14:39+00:00
description: Update existing metadata key-value pairs for a case.
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Tines API](https://www.tines.com/llms.txt) › [Cases](https://www.tines.com/llm/docs/api/cases.md) › [Metadata](https://www.tines.com/llm/docs/api/cases/metadata.md)*

# Update

*[View on tines.com](https://www.tines.com/docs/api/cases/metadata/update-1-0/)*

| ⚠️ Note                                                                     |
| --------------------------------------------------------------------------- |
| This API endpoint has been deprecated, please update to the latest version. |

## Description

Update existing metadata key-value pairs for a case.

## Request

HTTP Method: **PUT**

| Parameter | Description                                           |
| --------- | ----------------------------------------------------- |
| metadata  | Case related metadata represented as key-value pairs. |

| Path Parameter | Description     |
| -------------- | --------------- |
| case_id        | ID of the case. |

### Sample request

```bash
curl -X PUT \
  https://<tenant-domain>/api/v1/cases/<<case_id>>/metadata \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>' \
  -d '{
        "metadata": {
          "key": "new value"
        }
      }'
```

## Response

A successful request will return a JSON object describing the updated metadata.

### Field description

| Parameter | Description                                           |
| --------- | ----------------------------------------------------- |
| case_id   | The case ID.                                          |
| metadata  | Case related metadata represented as key-value pairs. |

### Sample response

<!-- cspell:disable -->

```json
{
  "case_id": 42,
  "metadata": {
    "key": "new value"
  }
}
```

<!-- cspell:enable -->
