PUT https://qa-api.bentley.com/changedelements/tracking
Enables or disables change tracking for an iModel. This operation requires you to pass the enable value, iModel Id and project Id in the body of the request as a JSON object.
Once enabled, when creating a new named version of an iModel, or when a changeset group completes, the changesets are processed to find all changed elements. You can then request this data using the GET /comparison operation.
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."}}
A URL parameter was malformed or the body of the request is invalid.
json
{"error":{"code":"InvalidChangedElementsRequest","message":"Could not enable or disable change tracking.","details":[{"code":"InvalidRequestBody","message":"The request body is not valid JSON."},{"code":"MissingRequiredProperty","message":"Required property is missing.","target":"iModelId"},{"code":"MissingRequiredProperty","message":"Required property is missing.","target":"projectId"},{"code":"MissingRequiredProperty","message":"Required property is missing.","target":"enable"},{"code":"InvalidValue","message":"'abc' is not a valid 'iModelId'.","target":"iModelId"},{"code":"InvalidValue","message":"'abc' is not a valid 'projectId'.","target":"projectId"},{"code":"InvalidValue","message":"'abc' is not a boolean.","target":"enable"}]}}
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.