> ## Documentation Index
> Fetch the complete documentation index at: https://nango-tiktok-accounts-update.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set connection metadata

> Set custom metadata for the connection.

## Set *connection metadata*

Use this API endpoint to set your [custom metadata](/guides/advanced-auth#storing-custom-metadata-per-connection) for a *connection*.

Nango uses the request body as the new metadata (it must be a JSON object). Note that this overrides any existing metadata.

## Fetching *connection metadata*

To read the existing metadata of a *connection*, simply [fetch it](/api-reference/connection/get). Your custom metadata is included as part of the returned *connection* object.To read the existing metadata of a *connection*, simply [fetch it](/api-reference/connection/get). Your custom metadata is included as part of the returned *connection* object.
