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 版本 | 请项目的智能体构建一个 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"
}
}
}
}