I am trying to take certificate from azure key Vault & want to upload it against service principle but I am getting method not allowed error.
Graph API call- PATCH
https://graph.microsoft.com/v1.0/applications?$filter=appId eq 'XXXXXXXXX'
Steps Followed from below article for request body
https://docs.microsoft.com/en-us/graph/api/resources/keycredential?view=graph-rest-1.0
I converted Certificate into Json (property name given in bracket below)
{
"@odata.type": //Given error so removed ,
"customKeyIdentifier": //Key vault's Certificate Identifier (kid),
"displayName": //Removed,
"endDateTime": //Key Vault's Certificate Expiration date (exp),
"key": "Binary" ://Key Vault's Certificate certicate (Cer) ,
"keyId": //New GUID,
"startDateTime": //Certificate Created date (Created ),
"type": "AsymmetricX509Cert",
"usage": "Verify"
}


