ios - Appstore 连接创建配置文件 api 不起作用

标签 ios app-store-connect apple-developer

我使用 appstore 连接 API。我使用了 create profile api 并收到了 500 错误( https://developer.apple.com/documentation/appstoreconnectapi/create_a_profile )。我检查了所有字段,它们都是正确的。我也联系过苹果,但他们没有回复。

请求:[POST]:https://api.appstoreconnect.apple.com/v1/profiles

body 数据:

{
    "data": {
        "attributes": {
            "name": "xxx",
            "profileType": "IOS_APP_STORE"
        },
        "relationships": {
            "bundleId": {
                "data": {
                    "id": "xxx",
                    "type": "bundleIds"
                }
            },
            "certificates": {
                "data": {
                    "id": "xxx",
                    "type": "certificates"
                }
            }
        },
        "type": "profiles"
    }
}

回应:

{
  errors: [
    {
      status: '500',
      code: 'UNEXPECTED_ERROR',
      title: 'An unexpected error occurred.',
      detail: 'An unexpected error occurred on the server side. If this issue ' +
        'continues, contact us at https://developer.apple.com/contact/.'
    }
  ]
}

最佳答案

已解决

证书数据必须是数组

"certificates": {
      "data": {
            "id": "xxx",
            "type": "certificates"
      }
 }

"certificates": {
      "data": [{
            "id": "xxx",
            "type": "certificates"
      }]
 }

关于ios - Appstore 连接创建配置文件 api 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57841473/

相关文章:

ios - 如何有效地合成 Quartz 和 OpenGL/Metal 绘图?

ios - 在模拟器中测试GameCenter排行榜,您是否需要“提交审查”?

iOS App Store - 当应用程序为 "Waiting for Review"时,您可以传输应用程序吗

ios - 我可以从企业帐户中删除应用程序 ID 并在标准开发人员帐户中重复使用吗

ios - iPhone XS 没有 UDID

受 IPV6 影响的 iOS 应用内购买非消耗品

ios - 此服务器的证书无效。您可能正在连接到伪装成 “domain” 的服务器

ios - 在将应用程序上传到 iOS App Store 之前,代码更改是否会使存档无效?

xcode - 将 Xcode 8.3.1 升级到 Xcode 9

ios - 你如何在一个 UITextView (Xcode) 中使用两种字体?