Skip to content

Call API Get iTwin iModels #7017

Answered by austeja-bentley
Paolo-lab asked this question in Q&A
Discussion options

You must be logged in to vote

In our logs I can see that this request came in with the following header value:

Accept:
 application/vnd.bentley.itwin-platform.v1+json,application/vnd.bentley.itwin-platform.v2+json

It could be that before you call client.DefaultRequestHeaders.Add("Accept", "application/vnd.bentley.itwin-platform.v2+json", client.DefaultRequestHeaders already has Accept header with value application/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

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@austeja-bentley
Comment options

@Paolo-lab
Comment options

@Paolo-lab
Comment options

@austeja-bentley
Comment options

Answer selected by Paolo-lab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants