New mandatory field requests for MS teams integration via Rest call

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      Hello team,
      When trying to create MS teams integration via Rest calls/(& using JAVA) get the below error to include some mandatory information.

      Error: Error occurred with Status code: 422, Message: Request body is not processable. Please check the errors., Took: 0.065000, RequestId: 9d760ace-6da1-4031-b8f2-e3690c31f43a, Error Detail: map[conversationId:must not be null msteamsV2AadGroupId:must not be null msteamsV2TeamId:must not be null msteamsV2TeamName:must not be null tenantName:must not be null] 

       

       

      This is reproducible on Data Center: (yes) / (no)

      yes

      Steps to Reproduce

      1. Send a Rest API call to create MS Teams Integration https://api.opsgenie.com/v2/integrations
      2. {    "type": "MSTeamsV2",    "executeCommands": true,    "name": "Test MS"} 
      1. Getting the below error
      {    "message": "Request body is not processable. Please check the errors.",    "errors": {        "tenantName": "must not be null",        "conversationId": "must not be null",        "msteamsV2TeamId": "must not be null",        "msteamsV2TeamName": "must not be null",        "msteamsV2AadGroupId": "must not be null"    },    "took": 0.001, 

      Expected Results

      Able to create MS teams Integration 

      Actual Results

      Getting the errors

      {    "message": "Request body is not processable. Please check the errors.",    "errors": {        "tenantName": "must not be null",        "conversationId": "must not be null",        "msteamsV2TeamId": "must not be null",        "msteamsV2TeamName": "must not be null",        "msteamsV2AadGroupId": "must not be null"    },    "took": 0.001, 

      Workaround

      Able to create the integration with empty values

      {
          "tenantName": "",
          "conversationId": "",
          "msteamsV2TeamId": "",
          "msteamsV2TeamName": "",
          "msteamsV2AadGroupId": ""
      }' 

            Assignee:
            Koray Kocakaya
            Reporter:
            Mubeen Mohammed
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: