---
title: Locking
slug: serpwow/batches-api/locking
docTags: 
createdAt: 2024-08-05T14:13:33.938Z
---

# Locking Batches

Batches can be locked to only allow searches of a specified type to be added.

![](https://apiimages.imgix.net/serpwow/images/png/docs/batch_lock_setup.png?auto=format\&ixlib=react-9.5.1-beta.1\&w=500 "Locking a Batch")

Locking a Batch to a specific search type has several benefits including allowing SerpWow to automatically choose the correct CSV fields, appropriate to the searches in the Batch, to be selected by default when exporting a Result Set in CSV mode. It can also help organize your account when you have many Batches set up.

![](https://apiimages.imgix.net/serpwow/images/png/docs/batch_locked.png?auto=format\&ixlib=react-9.5.1-beta.1\&w=350 "A locked Batch")

A Batch can also be left unlocked (set to  `mixed` ) to allow any search type to be added.

If you leave the Batch as unlocked SerpWow will automatically detect the search type based on the searches that have been subsequently added to the Batch (or will be set to  `mixed`  in the case of the Batch containing a mix of different search types).

![](https://apiimages.imgix.net/serpwow/images/png/docs/batch_mixed.png?auto=format\&ixlib=react-9.5.1-beta.1\&w=350 "An unlocked Batch")

You can specify whether a Batch is locked when setting the Batch up in the Dashboard, or via the Batches API. For more information see the [Create Batch API documentation](https://docs.trajectdata.com/serpwow/batches-api/batches/create).
