-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Integrations - 3rd-party - Microsoft Teams
-
None
-
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
- Send a Rest API call to create MS Teams Integration https://api.opsgenie.com/v2/integrations
{ "type": "MSTeamsV2", "executeCommands": true, "name": "Test MS"}
- 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": ""
}'