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

# 설정 일괄 업데이트

> 여러 App에 동일 설정 패치 적용 — 클러스터 일괄 중지/재개.

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

인증: API 키 필요(`Authorization: Bearer <API Key>`).

여러 App에 대한 되돌릴 수 있는 운영 스위치: 업스트림 변경이나 요청 한도 초과가 발생하면 관련된 모든 App을 같은 `pause_message`로 한 번에 일시 중지하고, 수정되면 한 번에 복원합니다. 공개 범위 일괄 변경도 같은 방식입니다(일괄 grant와 함께 사용: 먼저 목록을 채운 뒤 `shared`로 전환). 필드 의미는 단일 App 설정 엔드포인트와 완전히 같으며, 이 엔드포인트는 하나의 패치를 여러 App에 적용할 뿐입니다.

## 요청

### 요청 body

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

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

### 요청 예시

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

## 응답

### 200 성공

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

페이로드는 `data`로 감쌉니다. 필드:

<ResponseField name="updated" type="integer" required>
  업데이트에 성공한 App 수.
</ResponseField>

<ResponseField name="apps" type="object[]" required>
  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>

### 오류

| HTTP | `code`         | `category`  | 설명              |
| ---- | -------------- | ----------- | --------------- |
| 401  | `unauthorized` | `forbidden` | API 키 누락 또는 무효. |

오류 응답은 `{"error": {code, category, message, retryable}}`입니다. <a href="/docs/ko/datahub/api/reference/introduction#errors">오류</a> 참고.

## 클라이언트 라이브러리

Python / JavaScript SDK는 아직 이 엔드포인트를 감싸지 않습니다. REST를 직접 호출하세요.
