---
title: "Shallow-merge app-scoped metadata for the current user"
description: "Atomically shallow-merge the body into ``raw_app_meta_data[app]``.\n\nOther namespaces are untouched. Pass ``null`` as a value to delete the\nmatching top-level key from the namespace."
---

> Documentation Index
> Fetch the complete documentation index at: https://truememory-docs.mvstg.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Auth API › Auth

`PATCH /auth/me/app-metadata`

Atomically shallow-merge the body into ``raw_app_meta_data[app]``.

Other namespaces are untouched. Pass ``null`` as a value to delete the
matching top-level key from the namespace.

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Query parameters

- `app` (`patch_my_app_metadata_auth_me_app_metadata_patch.query.app`; string, required) — App namespace, e.g. blinklife

## Request body

_Required._

## Example request

```json
{}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://truememory-auth.mvstg.com/auth/me/app-metadata?app=string' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### TypeScript

```typescript
const url = 'https://truememory-auth.mvstg.com/auth/me/app-metadata?app=string';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://truememory-auth.mvstg.com/auth/me/app-metadata?app=string"

payload = {}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Successful Response

#### Example

```json
{}
```

### 422

Validation Error

#### Example

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

- `detail` (`patch_my_app_metadata_auth_me_app_metadata_patch.response.422.detail`; array<object>, optional)
  - `loc` (`patch_my_app_metadata_auth_me_app_metadata_patch.response.422.detail.loc`; array<any of>, required)
    - any of: `string`, `integer`
  - `msg` (`patch_my_app_metadata_auth_me_app_metadata_patch.response.422.detail.msg`; string, required)
  - `type` (`patch_my_app_metadata_auth_me_app_metadata_patch.response.422.detail.type`; string, required)
  - `input` (`patch_my_app_metadata_auth_me_app_metadata_patch.response.422.detail.input`; unknown, optional)
  - `ctx` (`patch_my_app_metadata_auth_me_app_metadata_patch.response.422.detail.ctx`; object, optional)


Source: https://truememory-docs.mvstg.com/auth/me/app-metadata/index.md
