question

PatelHetal-2097 avatar image
0 Votes"
PatelHetal-2097 asked CarlZhao-MSFT commented

Upload image to sharepoint list using graph API

I am trying to upload an image to image type column into sharepoint list. Below is the request detail but that gives a bad request.

Does anyone know more about how to do it

POST - https://graph.microsoft.com/v1.0/sites/<site-id>/lists/<list-id>/items

Request Body
{
"fields": {
"Title": "Group 1",
"Image": {
"Url" : "https://myimageurl",
"Description": "This is Image"
}
}
}

Also, tried this but this gives server error.

{
"fields": {
"Title": "Group 1",
"Image": "https://myimageurl",
}
}

microsoft-graph-sites-lists
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CarlZhao-MSFT avatar image
0 Votes"
CarlZhao-MSFT answered CarlZhao-MSFT commented

Hi dear @PatelHetal-2097

You can refer to the question I answered yesterday. The use of hyperlink fields to create or update SharePoint list items is currently not supported.


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.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @PatelHetal-2097 Would you please provide us with an update on the status of your issue?

0 Votes 0 ·

Hi @CarlZhao-MSFT, can you please share the link of the question you described in your answer above?
I'm facing a simular problem. I'm trying to upload an image as a sharepoint driveItem using graph API.

Thanks a lot


0 Votes 0 ·