Hello Apple Developer Team,
I've followed the AppStoreConnect API documentation and created the following:
I've created a API Key in App store > Integrations > Teams key, gave the role as admin.
- Created a valid JWT token
- When fetching the GET v1/apps, I can see the list of apps.
- Also I was able to make GET v1/users as well successfully.
- I've the valid bundle Id and capabilities enabled in the developer portal.
Facing an issue while creating an app in App Store using AppStoreConnect API using POST call:
This is my ruby script:
response = api_request(
method: :post,
path: "/v1/apps",
token: token,
body: {
data: {
type: 'apps',
attributes: {
name: APP_NAME,
primaryLocale: LOCALE,
sku: "SKU#{Time.now.to_i}",
bundleId: BUNDLE_ID,
platform: 'IOS'
}
}
}
)
It gives me below error:
{
"errors": [
{
"id": "09b465fc-316f-47b4-9bc3-9c340cb966aa",
"status": "403",
"code": "FORBIDDEN_ERROR",
"title": "The given operation is not allowed",
"detail": "The resource 'apps' does not allow 'CREATE'. Allowed operations are: GET_COLLECTION, GET_INSTANCE, UPDATE"
}
]
}
Did anyone was able to successfully create the app in App Store via AppStoreConnect API?
Could you please help me identify the root cause for the above issue and provide some inputs so that I could work on resolving them and move forward in the deployment process.
Appreciate your help in reviewing this.
Thank you, Santosh