Ability to specify the display name in the create certificate App Store Connect API

When using the create certificate API, I get a response back similar to the following:
Code Block
{
"data" : {
"type" : "certificates",
"id" : "XXXXXXXXXX",
"attributes" : {
"serialNumber" : "YYYYYYYYYYYYYYYY",
"certificateContent" : "...",
"displayName" : "Created via API",
"name" : "iOS Development: Created via API",
"csrContent" : null,
"platform" : "IOS",
"expirationDate" : "2021-08-26T02:15:27.000+0000",
"certificateType" : "IOS_DEVELOPMENT"
},
"links" : {
"self" : "https://api.appstoreconnect.apple.com/v1/certificates/XXXXXXXXXX"
}
},
"links" : {
"self" : "https://api.appstoreconnect.apple.com/v1/certificates"
}
}

The newly created certificate also shows up on the web interface with "Created via API" as its name, which makes it hard to differentiate between different certificates. I'm assuming the web interface gets the name from the "displayName" field in the response, or vice versa.

The CertificateCreateRequest object doesn't define a field for the display name. Does anybody know of a way to specify the display name when creating a certificate with the API? Any help is appreciated.

Replies

Well you got one step further than I have. ;P

Can you share an example of your payload ? I am trying to create a passid cert and am getting a "code":"NOT_FOUND" along with some other errors