POST https://api.bentley.com/itwins/{iTwinId}/repositories
Creates a new Repository URI.
A repository is a Uri link to iTwin data managed by another service. The links for most classes are autogenerated but some can only be added manually using this POST endpoint.
The following Classes/SubClasses can be added using this POST endpoint.
The user must have the itwins_modify permission in order to add a repository URI to the iTwin.
An Organization Administrator can modify iTwins owned by their Organization. This includes adding a repository URI.
Organization Administrators are power users for all iTwins owned by their organization. They will be able to create, modify or delete any iTwin.
Example: john.doe@example.com is an Organization Administrator that works for Example Industries. John will be able to create iTwins and those iTwins will belong to Example Industries. John and any other Organization Administrator for Example Industries will be able to update or delete the iTwin. Any user (an employee of Example Industries, or an external participant) can be [invited] (https://developer.bentley.com/apis/access-control-v2/operations/add-itwin-user-members/) to collaborate on the iTwin.
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."}}
Invalid request to create a iTwin. Review the 'Field Values' section near the top of this page.
json
{"error":{"code":"InvalidiTwinsRequest","message":"Cannot add iTwin Repository.","details":[{"code":"InvalidValue","message":"Class value is incorrect.","target":"class"},{"code":"InvalidValue","message":"SubClass value is incorrect.","target":"subClass"},{"code":"MissingRequiredProperty","message":"A required property is missing or empty.","target":"class"},{"code":"MissingRequiredProperty","message":"A required property is missing or empty.","target":"uri"}]}}
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.