I've been able to create a new version, but I am unable to update the description. There are no examples for that, so I am going through trial&error (mostly error...).
I am posting to:
https://api.appstoreconnect.apple.com/v1/appStoreVersionLocalizations
the following data:
where newAppDescription is obviously a string and versionId is obtained from:
https://api.appstoreconnect.apple.com/v1/apps/[MyAppAppleID]/appStoreVersions
filtering by appStoreState=PREPARE_FOR_SUBMISSION.
I get this error:
I've tried replacing the request.post with request.patch, but then I get a "405-Method not allowed".
Do you have any hints? Thank you
I am posting to:
https://api.appstoreconnect.apple.com/v1/appStoreVersionLocalizations
the following data:
Code Block "data": { "type": "appStoreVersionLocalizations", "attributes": { "locale": "it", "description": newAppDescription }, "relationships": { "appStoreVersion": { "data": {"type": "appStoreVersions", "id": versionId } } } }
where newAppDescription is obviously a string and versionId is obtained from:
https://api.appstoreconnect.apple.com/v1/apps/[MyAppAppleID]/appStoreVersions
filtering by appStoreState=PREPARE_FOR_SUBMISSION.
I get this error:
Code Block "errors": [ { "id": "347ed3fe-0f11-41e1-a70b-7c66b949cff4", "status": "409", "code": "ENTITY_ERROR.ATTRIBUTE.INVALID.DUPLICATE", "title": "The provided entity includes an attribute with a value that has already been used", "detail": "Entity with locale: it already exists. Try updating.", "source": { "pointer": "/data/attributes/locale" } } ]
I've tried replacing the request.post with request.patch, but then I get a "405-Method not allowed".
Do you have any hints? Thank you