500 Internal Server Error on creating contact in Outlook API

Rubén Esteban Prado 1 Reputation point
2022-10-26T08:28:52.397+00:00

Hello

I'm trying to create a Outlook contact by POST https://graph.microsoft.com/v1.0/users/{user_id}/contacts
It has been working for many days, but today stopped working recieving 500 Internal Server Error.

GET and DELETE methods for contacts endpoint are working fine. Need a solution for this ASAP.

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,761 Reputation points Microsoft External Staff
    2022-10-27T13:13:30.18+00:00

    Hi @Rubén Esteban Prado ,

    I am able to create outlook contact using POST https://graph.microsoft.com/v1.0/me/contacts

    POST https://graph.microsoft.com/v1.0/me/contacts  
      
    {  
        "givenName": "Pavel",  
        "surname": "Bansky",  
        "emailAddresses": [  
            {  
                "address": "******@fabrikam.onmicrosoft.com",  
                "name": "Pavel Bansky"  
            }  
        ],  
        "businessPhones": [  
            "+1 732 555 0102"  
        ]  
    }  
    

    254773-image.png

    500 Internal Server Errors are generally interim and retrying after some time should work, if you are consistently experiencing such errors, I would advise you to raise a support case with Microsoft Graph, a specialized Support Engineer will be able to assist you better.

    You can raise technical support request from:
    https://portal.azure.com/#view/Microsoft_Azure_Support/HelpAndSupportBlade/~/overview or https://admin.microsoft.com/#/support/requests.

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.