Create a New Item in a List with Attachment

hey hey 6 Reputation points
2022-06-09T14:56:59.86+00:00

Hello,
I'm using Microsoft SharePoint Online and using the Microsoft Graph RestAPI v1.0 API.
When creating a list item, there is an "Add Attachment" field.
209941-image.png
Is it possible to add attachments to list items using the Microsoft Graph RestAPI v1.0 API?
Looking forward to hearing from you.
Thank you in advance.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,715 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,737 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,696 Reputation points Microsoft Vendor
    2022-06-09T15:27:31.413+00:00

    Hi @hey hey ,

    Currently Graph API doesn't support, add/update/view attachments of list item.

    Refer to a similar post: Graph API - Upload File to ListItem.

    You can upvote the idea Ability to attach files to list items using Graph API, on graph feedback forum.

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".

    0 comments No comments

  2. Tong Zhang_MSFT 9,116 Reputation points
    2022-06-13T08:51:36.45+00:00

    Hi @hey hey ,

    I agree with SrinivasaRaoDarnaMSFT-7657's answer, Microsoft Graph API doesn't support adding attachments to list items.

    I recommend you can vote this ticket on graph feedback forum. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.