---
title: "Add JSON metadata with a process under the given key"
method: PUT
path: "/api/v3/process/{id}/metadata/{key}"
tags: ["v16.7.2"]
---

# Add JSON metadata with a process under the given key

`PUT /api/v3/process/{id}/metadata/{key}`

Add arbitrary JSON metadata under the given key. If the key exists, all already stored metadata with this key will be overwritten. If the key doesn't exist, it will be created.

## Path parameters

- `id` string, required
- `key` string, required

## Request body

- unknown

## Response `200`

OK

- unknown

## Other responses

- `400` — Bad Request
- `404` — Not Found

## Changes

- **2022-10-13** `37e2216cc6a2` — 1 info
  - api tag `v16.7.2` added
- **2022-07-29** `44bcbc1544e1` — 1 info
  - api operation id `restream-3-set-process-metadata` removed and replaced with `process-3-set-process-metadata`
- **2022-05-13** `d0614126abfa` — 2 info
  - api operation id `process-3-set-process-metadata` removed and replaced with `restream-3-set-process-metadata`
  - api tag `v16.7.2` removed

[Change history](https://skmtc.dev/datarhei/apis/datarhei-core-api/changes/api/v3/process/:id/metadata/:key/put.md)

---

[API](https://skmtc.dev/datarhei/apis/datarhei-core-api.md) · [All operations](https://skmtc.dev/datarhei/apis/datarhei-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datarhei/datarhei-core-api/revisions/0197dcdcdd5a/schema)
