GET https://api.bentley.com/itwins/{iTwinId}/repositories[?class][&subClass]
Gets the details of the specified repository.
A repository is a Uri link to iTwin data managed by another service.
For example, if an iTwin has Forms data then you can get the Uri for that
data by using this api and specifying iTwinId = 547d397a-9921-4e4f-a7a2-c47fc19219b0 and Class = Forms. It will return the following.
If no Class is specified then all repositories containing data for the iTwin will be returned. The Uri is automatically generated
by calling each service to determine if its repository contains data for the specified iTwin. For example, if there are no iModels for the specified iTwin
then the iModel Repository Uri will not be returned.
The following Classes/SubClasses are supported. Classes in italics are auto generated. The others can be added manually using the POST endpoint.
User must be an Organization Administrator for the Organization that owns the specified iTwin Repository or be an iTwin team member.
An Organization Administrator must have at least one of the following roles assigned in User Management: Account Administrator, Co-Administrator, or CONNECT Services Administrator. For more information about User Management please visit our Bentley Communities Licensing, Cloud, and Web Services wiki page.
This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.
json
HeaderNotFound
{"error":{"code":"HeaderNotFound","message":"Header Authorization was not found in the request. Access denied."}}
{"error":{"code":"InvalidiTwinsRequest","message":"Cannot query iTwin Repositories.","details":[{"code":"InvalidValue","message":"A valid iTwin Repository Class was not specified in the query.","target":"class"},{"code":"InvalidValue","message":"A valid iTwin Repository SubClass was not specified in the query.","target":"subClass"},{"code":"InvalidValue","message":"iTwinId contains an invalid value.","target":"iTwinId"}]}}
Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.