> ## 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.

# Einstellungen stapelweise aktualisieren

> Denselben Settings-Patch auf mehrere Apps anwenden — ganzes Cluster pausieren oder fortsetzen.

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

Authentifizierung: API-Schlüssel erforderlich (`Authorization: Bearer <API Key>`).

Reversible Betriebsschalter für ein App-Cluster: bei Upstream-Änderungen oder Rate-Limits alle verwandten Apps einmal mit derselben `pause_message` pausieren, dann nach Fix wiederherstellen; Bulk-Sichtbarkeitsänderungen funktionieren gleich (mit Batch-Grants koppeln: Liste zuerst füllen, dann auf `shared` schalten). Feldsemantik entspricht exakt dem Single-App-Settings-Endpoint; dieser Endpoint wendet nur einen Patch auf viele Apps an.

## Anfrage

### Anfrage-Body

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

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

### Beispielanfrage

```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"
```

## Antwort

### 200 Erfolg

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

Payload ist in `data` gewrappt. Felder:

<ResponseField name="updated" type="integer" required>
  Anzahl erfolgreich aktualisierter Apps.
</ResponseField>

<ResponseField name="apps" type="object[]" required>
  Verarbeitungsergebnis pro App.

  <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>

### Fehler

| HTTP | `code`         | `category`  | Beschreibung                             |
| ---- | -------------- | ----------- | ---------------------------------------- |
| 401  | `unauthorized` | `forbidden` | Fehlender oder ungültiger API-Schlüssel. |

Fehlerantworten nutzen `{"error": {code, category, message, retryable}}`. Siehe <a href="/docs/de/datahub/api/reference/introduction#errors">Fehler</a>.

## Client-Bibliotheken

Die Python- und JavaScript-SDKs wrappen diesen Endpoint noch nicht. REST direkt aufrufen.
