You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msgraph.generated.models.o_data_errors.o_data_error.ODataError:
APIError
Code: 400
message: None
error: MainError(additional_data={}, code='BadRequest', details=None, inner_error=InnerError(additional_data={}, client_request_id='9e4e9f64-aba1-4c0e-9da8-a9f14aedf3e7', date=datetime.datetime(2025, 5, 9, 11, 56, 52), odata_type=None, request_id='c7e7f184-b8be-4f3f-a76b-a499cc8f36cb'), message='The navigation bind for the teamsApp was missing in request.', target=None)
When only passing body with additional_data (i.e. exclude consented_permission_set), the same error occurred.
When I tried passing a body with only additional_data (i.e., excluding consented_permission_set), the same error occurred.
For further investigation, I tried using this API via Graph Explorer and faced two problems:
When posting a body with only teamsApp@odata.bind, I received a Bad Request - 400: ResourceSpecificPermissionsMismatch.
I believe this is an expected error because the app I want to install requires resource-specific consent.
Next, when I added consentedPermissionSet to the body (similar to my Python code), I received a Bad Gateway - 502: Failed to execute backend request.
I've tried multiple approaches both in Python and Graph Explorer, but I can't successfully install the app to the chat. How can I resolve this issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'd like to install Teams Apps to chat using the Graph API. Following the documentation, I implemented the code as shown below:
This code triggered the following API Error:
When I tried passing a body with only additional_data (i.e., excluding consented_permission_set), the same error occurred.
For further investigation, I tried using this API via Graph Explorer and faced two problems:
When posting a body with only
teamsApp@odata.bind
, I received a Bad Request - 400: ResourceSpecificPermissionsMismatch.I believe this is an expected error because the app I want to install requires resource-specific consent.
Next, when I added consentedPermissionSet to the body (similar to my Python code), I received a Bad Gateway - 502: Failed to execute backend request.
I've tried multiple approaches both in Python and Graph Explorer, but I can't successfully install the app to the chat. How can I resolve this issue?
Beta Was this translation helpful? Give feedback.
All reactions