Patches a configuration based on the provided iTwin Id.
Authentication
Requires Authorization
header with valid Bearer token for scope itwin-platform
.
For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.
Request parameters
iTwin Id
Request headers
OAuth access token with itwin-platform
scope
Setting to application/vnd.bentley.itwin-platform.v1+json
is recommended.
Request body
iTwin configuration
Enables reality data upload to Reality Data API while synchronizing files to iModels, if .3sm, .3mx, .pod, or raster attachments are attached to CAD data. The default value is true.
Enables terrain model elements to be processed during dgn-based synchronizations. The default value is false.
Enables the creation of a single Changeset for physical and drawing elements (2D, 3D) coming from all Source Files. Separate Changesets will be pushed for any schema or definition changes. The default value is false.
Ignores geo-location defined in .rvt file and overlaps the model at the local iModel coordinates. The default value is false.
Enables displaying the 2D section graphics and annotations in the context of the 3D model. The default value is true.
Example
{ "uploadDgnRealityData": true, "convertDgnTerrainModels": false }
Response 200 OK
OK
{ "configuration": { "scopeId": "7dbd531d-6967-47b2-8945-a722a437ad7a", "settings": { "uploadDgnRealityData": true, "convertDgnTerrainModels": false }, "resolvedSettings": { "uploadDgnRealityData": true, "convertDgnTerrainModels": false, "squashIntermediateRevisions": false, "skipRvtReprojection": false, "convertDgnHyperModelingSections": true } } }
Response 401 Unauthorized
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.
{ "error": { "code": "HeaderNotFound", "message": "Header Authorization was not found in the request. Access denied." } }
Response 404 Not Found
This response indicates that the specified configuration was not found.
{ "error": { "code": "ConfigurationNotFound", "message": "Requested Configuration is not available." } }
Response 422 Unprocessable Entity
Invalid request to patch a configuration. Request payload might be missing some of the required properties.
{ "error": { "code": "InvalidConfigurationRequest", "message": "Cannot perform operation.", "details": [{ "code": "InvalidRequestBody", "message": "Error parsing JSON, malformed JSON." }, { "code": "InvalidValue", "message": "Provided itwinid value is not valid.", "target": "itwinid" } ] } }
Response 429 Too many requests
This response indicates that the client sent more requests than allowed by this API for the current tier of the client.
{ "error": { "code": "RateLimitExceeded", "message": "The client sent more requests than allowed by this API for the current tier of the client." } }
Response headers
Number of seconds to wait until client is allowed to make more requests.
Configuration response
Configuration
Scope Id
iTwin configuration
Enables reality data upload to Reality Data API while synchronizing files to iModels, if .3sm, .3mx, .pod, or raster attachments are attached to CAD data. The default value is true.
Enables terrain model elements to be processed during dgn-based synchronizations. The default value is false.
Enables the creation of a single Changeset for physical and drawing elements (2D, 3D) coming from all Source Files. Separate Changesets will be pushed for any schema or definition changes. The default value is false.
Ignores geo-location defined in .rvt file and overlaps the model at the local iModel coordinates. The default value is false.
Enables displaying the 2D section graphics and annotations in the context of the 3D model. The default value is true.
User defined connector settings
Enables reality data upload to Reality Data API while synchronizing files to iModels, if .3sm, .3mx, .pod, or raster attachments are attached to CAD data. The default value is true.
Enables terrain model elements to be processed during dgn-based synchronizations. The default value is false.
Controls sheets and drawings synchronization. The default value is false.
Separates Civil3d Connector 2D elements from 3D elements in the target iModel. The 2D elements will be inserted into a graph model while the 3D elements will be kept in the spatial model. The default value is false.
Enables the creation of a single Changeset for physical and drawing elements (2D, 3D) coming from all Source Files. Separate Changesets will be pushed for any schema or definition changes. The default value is false.
Ignores geo-location defined in .rvt file and overlaps the model at the local iModel coordinates. The default value is false.
Enables displaying the 2D section graphics and annotations in the context of the 3D model. The default value is true.
Enables a limit for the project Z extent maximum up to Mount Everest height (i.e.8849 meters). Works only when project extent in XY direction is defined for iModel. The default value is false.
Define distance in meters when to start ignoring .rvt file geo-location data and reprojecting graphics based on local iModel coordinates. The default value is 0.
Enables processing of sheet index files from the associated workspace.
Enables a limit for the processing of sheets provided to the connector to the ones specified in the sheet index.
Enables connector to change the base class of an element if its current classification comes from the Generic schema. The default value is false.
Enables skipping of all reference attachments. As a result, only the master file is synchronized into the iModel. Only applicable for .dgn and .dwg files. The default value is false.
Error
Contains error information.
One of a server-defined set of error codes.
A human-readable representation of the error.
The target of the error.
Error Response
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.
Was this page helpful?