> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch update settings

> Apply the same settings patch to multiple apps — pause or resume a whole cluster.

**`POST`** `https://api-datahub.octoparse.com/v1/data-apps/batch/settings`

Authentication: API key required (`Authorization: Bearer <API Key>`).

Reversible operational switches for a cluster of apps: when upstream changes or rate-limits hit, pause every related app once with the same `pause_message`, then restore once they are fixed; bulk visibility changes work the same way (pair with batch grants: fill the list first, then switch to `shared`). Field semantics match the single-app settings endpoint exactly; this endpoint only applies one patch to many apps.

## Request

### Request body

<ParamField body="app_names" type="string[]" required>
  —
</ParamField>

<ParamField body="settings" type="object" required>
  —
</ParamField>

### Example request

```bash theme={null}
curl -X POST \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"apps": ["carol/reviews-query", "carol/product-detail"], "patch": {"accepting_runs": false, "pause_message": "Upstream rate-limited; service paused"}}' \
  "https://api-datahub.octoparse.com/v1/data-apps/batch/settings"
```

## Response

### 200 success

```json theme={null}
{
  "data": {
    "updated": 2,
    "apps": [
      {
        "app": "carol/reviews-query",
        "ok": true
      },
      {
        "app": "carol/product-detail",
        "ok": true
      }
    ]
  }
}
```

The payload is wrapped in `data`. Fields:

<ResponseField name="updated" type="integer" required>
  Number of apps successfully updated.
</ResponseField>

<ResponseField name="apps" type="object[]" required>
  Per-app processing result.

  <Expandable title="fields">
    <ResponseField name="app_name" type="string" required>
      —
    </ResponseField>

    <ResponseField name="ok" type="boolean" required>
      —
    </ResponseField>

    <ResponseField name="code" type="string">
      —
    </ResponseField>
  </Expandable>
</ResponseField>

### Errors

| HTTP | `code`         | `category`  | Description                 |
| ---- | -------------- | ----------- | --------------------------- |
| 401  | `unauthorized` | `forbidden` | Missing or invalid API key. |

Error responses use `{"error": {code, category, message, retryable}}`. See <a href="/docs/en/datahub/api/reference/introduction#errors">Errors</a>.

## Client libraries

The Python and JavaScript SDKs do not wrap this endpoint yet. Call REST directly.
