question

IvanMaria-3338 avatar image
0 Votes"
IvanMaria-3338 asked Deva-MSFT commented

cTag format is different in response headers when fetching the file contents

When I use the following API

GET /drives/{drive-id}/items/{item-id}

I get the following ctag value in the response body

"c:{21087D96-34CA-416F-8613-F8ED59C6DB34},5"

The above ctag works well with If-Match header for subsequent requests.

However, when I use the following API

GET /drives/{drive-id}/items/{item-id}/content

I get the following ctag value in response header.

{21087D96-34CA-416F-8613-F8ED59C6DB34},6,5

As the format of above ctag is different, it always fail for If-Match header in subsequent requests.

What is the recommended way of handling the ctag value correctly?













microsoft-graph-files
· 1
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.

What error you're getting? Share the graph response along with requestid, timestamp

0 Votes 0 ·

0 Answers