MS Teams App Updation Graph API gives error response even if app updation is successful

Neelu George 20 Reputation points
2024-12-09T13:38:54.3433333+00:00

Graph API endpoint to update an existing app gives response code as 400 instead of 201, but the actual updation happens successfully in the app catalog.

https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/{app_catalog_id}/appDefinitions"

Response:

{
   "error":{
      "code":"BadRequest",
      "message":"Value cannot be null. (Parameter 'entity')",
      "innerError":{
         "date":"2024-12-09T13:20:03",
         "request-id":"e0744d75-91e0-43dc-aa32-21daf7c37916",
         "client-request-id":"e0744d75-91e0-43dc-aa32-21daf7c37916"
      }
   }
}



This happens for one app while for others, I am getting 201 response

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,634 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,754 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,472 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Saranya Madhu-MSFT 1,000 Reputation points Microsoft Vendor
    2025-01-09T08:51:11.68+00:00

    Hi Neelu George,

    Thanks for reaching out to Microsoft!

    As mentioned here in the document: it is recommended to use the ID returned from the List published apps call to reference the app you'd like to update.

    In the request body include a Teams zip manifest payload.

    When you publish your app to the Microsoft Teams Store, ensure your app manifest references to the latest app manifest schema and entity values are not empty.

    Once the Update an application previously published to the Microsoft Teams app catalog is successful results in 204 No Content

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further 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.