---
title: "Update Batch Metadata"
method: PATCH
path: "/v1/{product}/batch/{batchId}"
tags: ["Batch"]
---

# Update Batch Metadata

`PATCH /v1/{product}/batch/{batchId}`

Update batch metadata or its associated client within the mutable window.

## Path parameters

- `product` string, required
- `batchId` string, required

## Request body

- object
  - `metadata` object
  - `client_id` string

## Response `200`

Updated batch.

## Other responses

- `400` — Bad Request - The request was malformed or contains invalid parameters. **Common causes:** - Missing required fields - Invalid field format (e.g., malformed email) - Invalid JSON syntax - Invalid parameter values
- `401` — Unauthorized - Authentication failed. **Common causes:** - Missing X-API-Key header - Invalid or expired API key - Malformed API key
- `404` — Not Found - The requested resource could not be found. **Common causes:** - Profile doesn't exist or is not accessible - Company not found in our database - Invalid URL or identifier

---

[API](https://skmtc.net/leadmagic/apis/leadmagic-api.md) · [All operations](https://skmtc.net/leadmagic/apis/leadmagic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/leadmagic/leadmagic-api/versions/e95809714e4d/schema)
