Call API Get iTwin iModels #7017
-
hello everyone it's been a few days that my web app can no longer find the models related to my project While the call for projects works correctly The call for models related to projects returns 404 - not found I use a c# back-end application to connect to the data for projects and models, I have obviously done some tests on I noticed in my application that the roles have been changed and I would not want this whole problem to be related to this Thanks for the precious help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
hello, |
Beta Was this translation helpful? Give feedback.
In our logs I can see that this request came in with the following header value:
It could be that before you call
client.DefaultRequestHeaders.Add("Accept", "application/vnd.bentley.itwin-platform.v2+json"
,client.DefaultRequestHeaders
already hasAccept
header with valueapplication/vnd.bentley.itwin-platform.v1+json
.Link to .NET docs:
https://learn.microsoft.com/en-us/dotnet/api/system.net.http.headers.httpheaders.add?view=net-8.0