appstore_update_store_listing
依語言變更 App 的 App Store 頁面文字;只會變更提供的欄位,並會新增新語言。
依語言變更 App Store 頁面文字。只有傳送的欄位會變更;商店資訊中還沒有的語言會被新增(此時需要它的 name)。它會寫入正在準備的版本,否則寫入已上架的版本。名稱、副標題和隱私權政策網址只有在準備新版本期間才能變更;宣傳文字隨時都能變更。它不會更動截圖。
傳送任何內容之前會檢查所有長度;只要有一個值過長,就不會做任何變更。之後各語言會依序寫入:如果 Apple 拒絕了某種語言,在它之前的語言仍維持已變更。
| 唯讀 | 破壞性 | 冪等 |
|---|---|---|
| 否 | 否 | 是 |
輸入
| 輸入 | 類型 | 必填 | 預設值 | 作用 |
|---|---|---|---|---|
teamId |
字串(UUID) | yes | — | 團隊,來自 list_teams。 |
projectId |
字串(UUID) | 與 appId 二擇一 |
— | 這個 App 所屬的專案,來自 list_projects:這是指定 App 的一般方式。App 是 App Store Connect 上 bundle ID 與該專案建置的 bundle ID 相同的那一個。兩者都傳送時,會使用 projectId。 |
appId |
string | 與 projectId 二擇一 |
— | 來自 appstore_list_apps 的 App Store Connect App ID,用於沒有專案建置的 App。 |
appleTeamId |
字串(UUID) | no | 所有已連結的 Apple 團隊 | 團隊的其中一個 Apple 團隊,來自 appstore_list_apple_teams。搭配 appId 時,只會在這個 Apple 團隊中尋找該 App。搭配 projectId 時不需要:由專案的 App 決定。 |
platform |
字串:IOS、MAC_OS、TV_OS、VISION_OS |
no | IOS |
哪個平台的 App Store 版本。 |
locales |
物件:語言代碼 → 欄位 | yes | — | 例如 {"en-US": {"subtitle": "…", "keywords": "a,b,c"}}。欄位見下文;不接受其他欄位。 |
| 欄位 | 類型 | 說明 |
|---|---|---|
name |
字串,最多 30 個字元 | App Store 名稱。App 資訊:只有在準備新版本期間才能變更 |
subtitle |
字串,最多 30 個字元 | 副標題。App 資訊 |
privacyPolicyUrl |
字串(URL) | 隱私權政策網址。App 資訊 |
description |
字串,最多 4,000 個字元 | 描述 |
keywords |
字串,最多 100 個字元 | 以逗號分隔的搜尋關鍵字,總共 100 個字元 |
whatsNew |
字串,最多 4,000 個字元 | 這個版本的新功能(第一個版本沒有) |
promotionalText |
字串,最多 170 個字元 | 隨時都能變更,即使是已上架的版本 |
supportUrl |
字串(URL) | 支援網址 |
marketingUrl |
字串(URL) | 行銷網址 |
長度以字元計算。
每個工具對輸入進行的檢查,請參閱 伺服器與登入。
結果
一個 JSON 物件,同時以文字和 structuredContent 傳回。
| 欄位 | 說明 |
|---|---|
version |
寫入的版本號碼 |
locales |
傳送的語言,依目前內容列出(欄位同 appstore_store_listing) |
{
"version": "1.2.0",
"locales": [
{
"locale": "en-US",
"name": "Notes",
"subtitle": "Write it down",
"privacyPolicyUrl": "https://example.com/privacy",
"description": "Notes",
"keywords": "notes,writing,journal",
"whatsNew": null,
"promotionalText": null,
"supportUrl": "https://example.com/support",
"marketingUrl": null
}
]
}錯誤
每個錯誤都會以工具錯誤(isError: true)傳回。斜體 文字代表句中的實際值。所有工具都可能傳回的錯誤,請參閱 伺服器與登入。
| 訊息 | 何時出現 | 處理方式 |
|---|---|---|
| locales must name at least one language. | 缺少 locales 或為空 |
至少傳送一種語言 |
| locale.field must be text. | 某個欄位的值不是字串 | 傳送字串 |
| Too long: locale.field is n characters (at most limit). Nothing was changed. | 一個或多個值超出上限;會全部列出,以 ; 分隔 |
縮短它們 |
| locale is new to the listing: give its name too. | 新語言有 subtitle 或 privacyPolicyUrl,但沒有 name |
加入 name |
| This app has no App Store version yet. Start one with appstore_prepare_version. | 該 App 在這個平台上沒有版本 | 用 appstore_prepare_version 建立一個 |
| App Store Connect has no app information for this app. | Apple 沒有傳回 App 資訊 | 在 App Store Connect 中檢查該 App |
| 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 版本 | 請專案的 Agent 建置 iOS 版本(send_message),或用 appId 指定 App |
| 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 團隊中,沒有 App 的 bundle ID 與專案相同,或沒有連結任何 Apple 團隊 | 用 appstore_create_app 建立 App,或用 appId 指定另一個 App |
| No connected Apple team of this Team has that app. See appstore_list_apps. | appId 不是任何已連結 Apple 團隊(或 appleTeamId)中的 App |
從 appstore_list_apps 取得 ID |
| platform must be IOS, MAC_OS, TV_OS or VISION_OS. | platform 是其他值 |
傳送這四個值之一 |
| App Store Connect: Apple’s sentence | Apple 拒絕了請求。後面最多附上 Apple 自己的五句說明,Apple 指出相關欄位時會在括號中註明。App Store Connect 中有待接受的 Apple 協議時,也會以這種方式被拒絕 | 依照 Apple 的說明處理。協議由 Apple Developer 帳號的帳號持有人在 App Store Connect 中接受(商務 › 協議) |
| App Store Connect answered status. Try again in a moment. | Apple 拒絕了,但沒有說明原因 | 稍後再試 |
範例
{
"name": "appstore_update_store_listing",
"arguments": {
"teamId": "00000000-0000-0000-0000-000000000000",
"projectId": "00000000-0000-0000-0000-000000000000",
"locales": {
"en-US": {
"subtitle": "Write it down",
"keywords": "notes,writing,journal"
}
}
}
}