---
title: "Update batch settings"
method: PATCH
path: "/api/lead-gen/batches/{batchId}"
tags: ["Lead Gen"]
---

# Update batch settings

`PATCH /api/lead-gen/batches/{batchId}`

## Request

- Base URL: `https://www.1clickwebsite.ai`
- URL: `https://www.1clickwebsite.ai/api/lead-gen/batches/{batchId}`
- Auth: HTTP bearer

Updates shared design defaults. Rows with individual overrides retain those overrides.

## Path parameters

- `batchId` string, uuid, required

## Request body

- LeadGenBatchUpdateRequest
  - `primaryColor` string
  - `primary_color` string
  - `backgroundTheme` 'light' | 'dark'
  - `background_theme` 'light' | 'dark'
  - `logoSizePx` integer
  - `logo_size_px` integer

## Response `200`

Batch settings updated

- LeadGenBatchUpdateResponse
  - `ok` boolean
  - `batchId` string, uuid
  - `primaryColor` string, nullable
  - `backgroundTheme` string, nullable
  - `logoSizePx` integer, nullable
  - `updatedCount` integer
  - `logoUpdatedCount` integer
  - `logoSkippedCount` integer
  - `colorUpdatedCount` integer
  - `colorSkippedCount` integer
  - `backgroundUpdatedCount` integer
  - `backgroundSkippedCount` integer

## Other responses

- `400`: Invalid or missing request data
- `401`: Missing, invalid, or revoked API key
- `404`: Resource not found or not owned by the authenticated account

---

[API](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api.md) · [All operations](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api/revisions/e842c9b4e4ec?raw)
