myappcloud / appstore-connect-api

unofficial sdk for appstore connect api
36 stars 19 forks source link

profiles create problem #2

Closed Alexei007 closed 4 years ago

Alexei007 commented 4 years ago
$certificates = [
    'xx1'
];
$result = $client->api('profiles')->create($name, $bId, $profileType, $devices, $certificates);

what does xx1 mean? The error message returned by my run is as follows.

{"errors":[{"id":"xxxxx","status":"409","code":"ENTITY_ERROR","title":"There is a problem with the request entity","detail":"There is no App ID with ID 'com.xxx.xxxx' on this team."}]}
myappcloud commented 4 years ago

xx1 means certificate id

see here https://developer.apple.com/documentation/appstoreconnectapi/profilecreaterequest/data/relationships/certificates/data

Alexei007 commented 4 years ago

Thank you for your reply. I have solved my problem.