---
title: JSON.MSET
description: Sets multiple JSON values at multiple paths in multiple keys.
---

## Arguments

<ParamField body="params" type="...{ key: string, path: string, value: TData }[]" required>
    One or more objects, each containing a key, a path, and a value.
    Type of value (`TData`) can be `Array<number>`, `string`, `boolean`, `Record<string, any>`, or `Array<any>`.
</ParamField>

## Response

<ResponseField type="string" required>
    Returns "OK" if the command was successful.
</ResponseField>

<RequestExample>
```ts Example
await redis.json.mset(
  { key: "profile:1", path: "$", value: { name: "Ada" } },
  { key: "profile:2", path: "$", value: { name: "Grace" } },
);
```
</RequestExample>
