---
title: "Set source group metadata"
method: PUT
path: "/source-groups/{source_group_id}/metadata"
tags: ["source-groups"]
---

# Set source group metadata

`PUT /source-groups/{source_group_id}/metadata`

Updates metadata for a specific source group. Merges with existing metadata by key. Send val: null to delete a key.

Required roles: All

## Path parameters

- `source_group_id` string, required

## Request body

- SetMetadataRequest
  - `metadata` Metadata, required
    - `records` MetadataRecord[] — List of metadata records. A patch may contain up to 40 items; the merged result is capped at 20.
      - `key` string, required — Metadata key (max 20 characters)
      - `val` unknown, required
      - `type` 'string' | 'integer' | 'float' | 'date' | 'datetime' — Data type of the metadata value

## Response `200`

Successfully set metadata

- Metadata
  - `records` MetadataRecord[] — List of metadata records. A patch may contain up to 40 items; the merged result is capped at 20.
    - `key` string, required — Metadata key (max 20 characters)
    - `val` unknown, required
    - `type` 'string' | 'integer' | 'float' | 'date' | 'datetime' — Data type of the metadata value

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

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