Reputation: 12001
Trying to get App related to the bundle ID using App Store API:
https://api.appstoreconnect.apple.com/v1/bundleIds/{id}/app
I'm receiving error 404:
"errors" : [ {
"id" : "ec7b1469-fe54-4ad5-9f2b-f665c31a6358",
"status" : "404",
"code" : "PATH_ERROR_REALTIONSHIP",
"title" : "The URL path is not valid",
"detail" : "The relationship 'app' does not exist on resource 'bundleIds'"
} ]
Tried to pass both Bundle ID id and Bundle ID itself as {id}
. Error is the same. The app exists in the store.
Upvotes: 3
Views: 389
Reputation: 552
From documentation you can use GET https://api.appstoreconnect.apple.com/v1/bundleIds/{id}
where id
is your bundle ID
So delete the /app path literally the 404 response is telling you to delete the URL path
If response is 200 the you will have a BundleIdResponse.data.relationship.app
The app object is BundleId.Relationships.App.Data
Upvotes: -1