# appstore_update_privacy

> 앱 개인정보 보호 답변을 주어진 선언과 정확히 같게 설정합니다. 변경 사항을 미리 보거나, 저장하거나, 저장하고 게시합니다.

Source: https://air.build/ko/docs/mcp-tools/appstore_update_privacy/

앱 개인정보 보호 답변을 보낸 선언과 정확히 같게 설정합니다. 선언에 있는 것은 추가되거나 업데이트되고, Apple이 보관한 답변 중 선언에서 빠진 것은 삭제됩니다. `mode`가 어디까지 진행할지 정합니다.

- `preview`(기본값)는 무엇이 바뀔지 보여 주고 아무것도 보내지 않습니다
- `apply`는 답변을 저장합니다
- `applyAndPublish`는 답변을 저장하고 App Store에 게시합니다.

선언이 답변을 삭제하게 되면, `allowDeletes`가 true가 아닌 한 `apply`와 `applyAndPublish`는 거부합니다. `preview`는 어떤 답변이 삭제될지 보여 줍니다. 변경은 삭제, 업데이트, 추가 순으로 이루어지며, 첫 거부에서 멈춥니다. 그 전에 이루어진 변경은 남습니다.

이 도구는 AirBuild에 있는 팀 소유자의 Apple 로그인을 통해 작동합니다([Apple Developer 계정 연결하기](https://air.build/ko/docs/app-store/connect-apple-developer-account/) 참고). 팀의 모든 구성원이 호출할 수 있습니다. 소유자의 로그인이 만료되어 소유자만 갱신할 수 있으면, 소유자가 다시 로그인할 때까지 호출은 아래 문장과 함께 실패합니다.

| 읽기 전용 | 파괴적 | 멱등 |
| --- | --- | --- |
| 아니요 | 예 | 예 |

## 입력

| 입력 | 유형 | 필수 | 기본값 | 설명 |
| --- | --- | --- | --- | --- |
| `teamId` | 문자열 (UUID) | yes | — | [list_teams](https://air.build/ko/docs/mcp-tools/list_teams/)의 팀. |
| `projectId` | 문자열 (UUID) | 이것 또는 `appId` | — | [list_projects](https://air.build/ko/docs/mcp-tools/list_projects/)의 프로젝트로, 앱을 지정하는 일반적인 방법입니다. 앱은 App Store Connect에서 프로젝트가 빌드하는 번들 id를 가진 앱입니다. 둘 다 보내면 `projectId`가 사용됩니다. |
| `appId` | string | 이것 또는 `projectId` | — | 어떤 프로젝트도 빌드하지 않는 앱을 위한, [appstore_list_apps](https://air.build/ko/docs/mcp-tools/appstore_list_apps/)의 App Store Connect 앱 id. |
| `appleTeamId` | 문자열 (UUID) | no | 연결된 모든 Apple 팀 | [appstore_list_apple_teams](https://air.build/ko/docs/mcp-tools/appstore_list_apple_teams/)의 팀 Apple 팀 중 하나. `appId`와 함께 쓰면 이 Apple 팀에서만 앱을 찾습니다. `projectId`와 함께 쓸 때는 필요 없습니다. 프로젝트의 앱이 결정합니다. |
| `dataUsages` | 객체 배열 | yes | — | 모든 데이터 사용(아래 행). 아무것도 수집하지 않는 앱: `[{"dataProtections": ["DATA_NOT_COLLECTED"]}]`. `includeCatalog`와 함께 [appstore_privacy](https://air.build/ko/docs/mcp-tools/appstore_privacy/)를 쓰면 모든 토큰이 나열됩니다. |
| `dataUsages[].category` | string | 데이터를 수집할 때 | — | 데이터 종류. 예: `EMAIL_ADDRESS`, `PRECISE_LOCATION`. `DATA_NOT_COLLECTED`일 때는 생략합니다. |
| `dataUsages[].purposes` | 문자열 배열 | 연결됨 또는 연결되지 않음 보호 항목과 함께 | — | 예: `APP_FUNCTIONALITY`, `ANALYTICS`. 추적만 할 때는 필요 없으며, `DATA_NOT_COLLECTED`일 때는 생략합니다. |
| `dataUsages[].dataProtections` | 문자열 배열, 1개 이상 | yes | — | `DATA_LINKED_TO_YOU`, `DATA_NOT_LINKED_TO_YOU`, `DATA_USED_TO_TRACK_YOU`, 또는 유일한 항목으로 `DATA_NOT_COLLECTED` 단독. |
| `mode` | 문자열: `preview`, `apply`, `applyAndPublish` | no | `preview` | 어디까지 진행할지(위 참고). |
| `allowDeletes` | boolean | no | false | `apply`와 `applyAndPublish`가 선언에서 빠진 답변을 삭제할 수 있게 합니다. |

모든 도구가 입력에 대해 하는 검사는 [서버와 로그인](https://air.build/ko/docs/mcp-tools/server/#errors)에 있습니다.

## 결과

텍스트와 `structuredContent`로 제공되는 JSON 객체. 각 변경은 "_category_ / _purpose_ / _protection_" 형식으로 쓰이며, 카테고리가 없으면 `—`입니다. `preview`일 때:

| 필드 | 내용 |
| --- | --- |
| `mode` | `preview` |
| `adds` | 추가될 답변 |
| `updates` | 바뀔 답변 |
| `deletes` | 삭제될 답변 |
| `note` | 삭제가 있을 때만: "Applying removes the deletes only with allowDeletes: true." |

`apply` 또는 `applyAndPublish`일 때:

| 필드 | 내용 |
| --- | --- |
| `mode` | 모드 |
| `changed` | 수행한 작업. 각각 "`create`, `update` 또는 `delete`: _change_" |
| `keptBecauseDeletesNotAllowed` | Apple이 삭제할 방법을 제공하지 않아 그대로 남은 답변 |
| `published` | `applyAndPublish`일 때만: 답변이 이제 게시되었는지 여부 |

```json
{
  "mode": "applyAndPublish",
  "changed": [
    "create: EMAIL_ADDRESS / APP_FUNCTIONALITY / DATA_LINKED_TO_YOU"
  ],
  "keptBecauseDeletesNotAllowed": [],
  "published": true
}
```

## 오류

각 오류는 도구 오류(`isError: true`)로 반환됩니다. _기울임꼴_ 단어는 문장 안의 값을 나타냅니다. 모든 도구가 반환할 수 있는 오류는 [서버와 로그인](https://air.build/ko/docs/mcp-tools/server/#errors)에 있습니다.

| Message | 발생 조건 | 해결 방법 |
| --- | --- | --- |
| This declaration removes _n_ existing data usage declaration(s). Confirm deletion to proceed. | `apply`나 `applyAndPublish`가 답변을 삭제하게 되는데 `allowDeletes`가 true가 아님. 아무것도 바뀌지 않음 | 미리 보고, 사용자에게 확인한 뒤 `allowDeletes: true`를 보내세요 |
| dataUsages must be a list. | `dataUsages`가 배열이 아님 | 배열을 보내세요 |
| declaration.dataUsages must contain at least one entry. | `dataUsages`가 비어 있음 | 항목을 하나 이상 보내세요. 수집하지 않으면 `DATA_NOT_COLLECTED` |
| dataUsages[_i_].category must match [A-Z0-9_]+. | 카테고리가 토큰이 아님 | 카탈로그의 토큰을 사용하세요 |
| dataUsages[_i_].purposes contains the invalid value "_value_". | 목적이 토큰이 아님 | 카탈로그의 토큰을 사용하세요 |
| dataUsages[_i_].dataProtections is required. | 항목에 보호 항목이 없음 | 추가하세요 |
| dataUsages[_i_].dataProtections contains the unsupported value "_value_". | 네 가지 외의 보호 항목 | 네 가지 중 하나를 사용하세요 |
| dataUsages[_i_] with DATA_NOT_COLLECTED cannot be combined with collected data usages. | 다른 항목과 함께 있는 `DATA_NOT_COLLECTED` | 단독으로 보내세요 |
| dataUsages[_i_] with DATA_NOT_COLLECTED cannot include other dataProtections. | 다른 보호 항목과 함께 있는 `DATA_NOT_COLLECTED` | 단독으로 보내세요 |
| dataUsages[_i_] with DATA_NOT_COLLECTED cannot include category. | 카테고리와 함께 있는 `DATA_NOT_COLLECTED` | 카테고리를 빼세요 |
| dataUsages[_i_] with DATA_NOT_COLLECTED cannot include purposes. | 목적과 함께 있는 `DATA_NOT_COLLECTED` | 목적을 빼세요 |
| dataUsages[_i_] with collected data cannot be combined with DATA_NOT_COLLECTED. | `DATA_NOT_COLLECTED` 항목 앞에 있는 수집 항목 | 둘 중 하나를 빼세요 |
| dataUsages[_i_].category is required when data is collected. | 카테고리가 없는 수집 항목 | 카테고리를 추가하세요 |
| dataUsages[_i_].purposes is required when data is collected. | 목적이 없는 연결됨 또는 연결되지 않음 항목 | 목적을 추가하세요 |
| The Team owner's Apple sign-in has lapsed and only they can renew it: ask them to open AirBuild and sign in to Apple again, then try once more. | AirBuild에서 팀 소유자의 Apple 로그인이 만료되었고, AirBuild가 소유자 없이 갱신하지 못함 | 팀 소유자에게 알리세요. 소유자가 AirBuild에서 다시 로그인합니다([Apple Developer 계정 연결하기](https://air.build/ko/docs/app-store/connect-apple-developer-account/) 참고). 그 전에 다시 시도하면 같은 응답이 나옵니다 |
| Another Apple account operation is already in progress. | 같은 Apple 계정에서 다른 App Store 작업이 실행 중이었음 | 잠시 후 다시 시도하세요. 소유자가 로그인할 필요는 없습니다 |
| Apple has locked this Apple Account for security reasons. Unlock it at account.apple.com by signing in with the Apple ID and password, then sign in again. | Apple이 팀 소유자의 Apple 계정을 잠금 | 팀 소유자만 account.apple.com에서 잠금을 풀고 AirBuild에서 다시 로그인할 수 있습니다 |
| Pass projectId, or appId from appstore_list_apps. | `projectId`도 `appId`도 보내지 않음 | 둘 중 하나를 보내세요 |
| This Project has not been built for iOS yet, so it has no bundle id to find its app by. Ask the Team's Agent to build it, or pass appId. | 프로젝트가 iOS용으로 빌드된 적이 없음 | 프로젝트의 에이전트에게 iOS 빌드를 요청하거나([send_message](https://air.build/ko/docs/mcp-tools/send_message/)), `appId`로 앱을 지정하세요 |
| This Project has no app on App Store Connect yet. Create one with appstore_create_app (its bundle id is the Project's), or pass appId. | 팀에 연결된 Apple 팀에 프로젝트의 번들 id를 가진 앱이 없거나, 연결된 Apple 팀이 없음 | [appstore_create_app](https://air.build/ko/docs/mcp-tools/appstore_create_app/)으로 앱을 만들거나, `appId`로 다른 앱을 지정하세요 |
| No connected Apple team of this Team has that app. See appstore_list_apps. | `appId`가 연결된 어떤 Apple 팀(또는 `appleTeamId`)의 앱도 아님 | [appstore_list_apps](https://air.build/ko/docs/mcp-tools/appstore_list_apps/)에서 id를 가져오세요 |
| App Store Connect: _Apple's sentence_ | Apple이 요청을 거부함. Apple 자체의 문장이 최대 다섯 개 뒤따르며, Apple이 관련 필드를 지정하면 각 문장 뒤 괄호 안에 그 필드가 붙음. App Store Connect에서 대기 중인 Apple 계약도 이렇게 거부됨 | Apple의 문장에 따라 조치하세요. 계약은 Apple Developer 계정의 계정 소유자가 App Store Connect(Business › Agreements)에서 수락합니다 |
| App Store Connect answered _status_. Try again in a moment. | Apple이 이유 없이 거부함 | 잠시 후 다시 시도하세요 |

## 예시

```json
{
  "name": "appstore_update_privacy",
  "arguments": {
    "teamId": "00000000-0000-0000-0000-000000000000",
    "projectId": "00000000-0000-0000-0000-000000000000",
    "dataUsages": [
      {
        "category": "EMAIL_ADDRESS",
        "purposes": [
          "APP_FUNCTIONALITY"
        ],
        "dataProtections": [
          "DATA_LINKED_TO_YOU"
        ]
      }
    ],
    "mode": "preview"
  }
}
```
