none
Using office 365 REST API Post Request To Create An Event Failed(400) RRS feed

  • Question

  • I want to use the office 365 REST API to create an event in outlook 365 as bellow:http://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#EventoperationsCreateevents

    Then I tried the official example code: https://code.msdn.microsoft.com/Office-365-APIsCreate-a-7590f7f1

    And I succeed in Get Request,but failed in POST Request:

    Get Request:

    POST Request:

    The response(400 error):

    {StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
    {
      request-id: 19eb1240-5c11-4637-9aec-4725981ed994
      X-CalculatedBETarget: db3pr02mb0428.eurprd02.prod.outlook.com
      OData-Version: 4.0
      X-DiagInfo: DB3PR02MB0428
      X-BEServer: DB3PR02MB0428
      Cache-Control: private
      Set-Cookie: exchangecookie=2568652394c1497bb657b4e03f86f2c9; path=/
      Set-Cookie: X-BackEndCookie2=c1778788-673d-487c-a2d5-8de2e0195339=u56Lnp2ejJqBmprHzMiczczSyMzIzNLLzcea0p3MyZ3Smp2bxsuez8bLnZybgZ6Fio2akJmRkJOekdGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOztLNyKvPycXOzsXLzIGaio2PjZvPzdGPjZCb0ZCKi5OQkJTRnJCS; expires=Thu, 27-Nov-2014 06:11:43 GMT; path=/ews; secure; HttpOnly
      Set-Cookie: X-BackEndCookie=c1778788-673d-487c-a2d5-8de2e0195339=u56Lnp2ejJqBmprHzMiczczSyMzIzNLLzcea0p3MyZ3Smp2bxsuez8bLnZybgZ6Fio2akJmRkJOekdGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOztLNyKvPycXOzsXLzA==; expires=Thu, 27-Nov-2014 06:11:43 GMT; path=/ews; secure; HttpOnly
      Server: Microsoft-IIS/8.0
      X-AspNet-Version: 4.0.30319
      X-Powered-By: ASP.NET
      X-FEServer: BLUPR11CA0048
      Date: Tue, 28 Oct 2014 06:11:43 GMT
      Content-Length: 82
      Content-Type: application/json; odata.metadata=minimal; odata.streaming=true; IEEE754Compatible=false; charset=utf-8
    }}

    Thursday, October 30, 2014 5:06 AM

All replies

  • Hi AveNolan,

    According to your description, you are using the REST API of office 365. For the issues of office 365 REST API, I suggest that you should post it to office 365 forum.

    For this forum, it is used for developing apps for office, apps for office provide new experiences in Office applications using JavaScript, web technologies, and cloud services to interact with Office documents, email messages, meeting requests, and appointments.

    More information about apps for office, please refer to:

    # Overview of apps for Office

    http://msdn.microsoft.com/en-us/library/office/jj220082(v=office.15).aspx

    Best Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Friday, October 31, 2014 5:42 AM
    Moderator