Create a New Item in a List with Attachment

asked 2022-06-09T14:56:59.86+00:00
hey hey 1 Reputation point

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.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
5,969 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
298 questions
Microsoft Graph Site Lists API
Microsoft Graph Site Lists API
A Microsoft API that "supports access to SharePoint sites, lists, and drives; read-only support for site resources; read-write support for lists, listItems, and driveItems; and address resources by SharePoint ID, URL, or relative path.
260 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. answered 2022-06-09T15:27:31.413+00:00
    SrinivasaRaoDarna - MSFT 6,091 Reputation points Microsoft Employee

    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".

    No comments

  2. answered 2022-06-13T08:51:36.45+00:00
    Tong Zhang_MSFT 8,706 Reputation points Microsoft Employee

    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.