I want to get an iModel ID for an iTwin #46
hussainshahzad5471
started this conversation in
General
Replies: 2 comments 4 replies
-
Try getting iModel ID for your iTwin in iModels API documentation page: If you encounter same issues there, let us know. |
Beta Was this translation helpful? Give feedback.
3 replies
-
@GytisCepk, thanks a ton. that works, do I have to use this header in all my requests or only the ones not working ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to get the iModel ID for an iTwin, didn't get anything in the documentation, then i looked at the har file to see how developer.bentley.com does it. looks like they hit the api "https://api.bentley.com/imodels/?iTwinId={}&$orderBy=name%20asc&$skip=0&$top=100" , i tried hitting the same from postman but i get error :
{
"error": {
"code": "InvalidiModelsRequest",
"message": "Cannot get iModels.",
"details": [
{
"code": "MissingRequiredParameter",
"message": "Required parameter is missing.",
"target": "projectId"
}
]
}
}
then i passed the project ID (got from a parameter vtp_projectId from the har file) and i get a new error:
{
"error": {
"code": "ProjectNotFound",
"message": "Requested project is not available."
}
}
Beta Was this translation helpful? Give feedback.
All reactions