What is pricing for Microsoft Graph API of uploadSession and Download Content

Vikas Patel 40 Reputation points
2023-07-19T05:04:57.5766667+00:00

Hey Team,

I am using microsoft graph API, I need to know pricing model for below three API.

  • Upload Session API (To upload file) - https://<SITE>/sites/TEST/_api/v2.0/drive/items/<ITEM_ID>/uploadSession
  • Upload new File (Less than 4mb)
  • Download Content API (To download file) - https://graph.microsoft.com/v1.0/sites/<SITE_ID>/drive/items/<ITEM_ID>/content

Also why upload API is using site domain and download content API is using https://graph.microsoft.com. Can you please explain this difference.

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Ab-8756 805 Reputation points
    2023-08-09T15:53:46.3333333+00:00

    Hello Vikas Patel,
    Thank you for your post in this Q&A Forum.

    Regarding the first part of the question, APIs you are asking about upload, download session APIs are not part of the any API billing models. Here is the list of APIs metered models;- https://learn.microsoft.com/en-us/graph/teams-licenses.
    However, it will fall under the SPO throttle limits. You still need to enable Azure billing.

    Regarding the second question, "why upload API is using site domain and download content API is using https://graph.microsoft.com" Please specify which part you are referring.
    To Download the contents;-
    GET, https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/content

    To upload or replace the contents:-
    PUT https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/content
    Looking forward to hearing from you.
    Thanks

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Ab-8756 805 Reputation points
    2023-08-11T19:28:57.27+00:00

    Hello Vikas Patel,
    I would like to follow up and inquire if you have any questions or if you found my suggestion helpful.
    Thanks

    0 comments No comments

  2. Ab-8756 805 Reputation points
    2023-08-14T11:35:55.6333333+00:00

    Hello Vikas Patel,
    I would like to follow up and inquire if you have any questions.
    Thanks

    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.