# Update ALL usage on the engine of the chosen algorithm to the replacement algorithm Endpoint: PUT /algorithms/{algorithmName}/usage Version: 5.1.47 Security: api_key ## Path parameters: - `algorithmName` (string, required) The name of the algorithm ## Query parameters: - `replacementAlgorithmName` (string, required) The name of the replacement algorithm - `ignoreIncompatibleTypes` (boolean, required) Update usage even when the original and new algorithms have incompatible masking types. - `environmentFilter` (array) Only update usage occurring within the specified environment(s). When an environment filter is applied, domain and algorithm reference usage is not updated. This operation will fail if any file format referencing the algorithm is used from environments that don't match the filter. - `rulesetFilter` (array) Only update usage occurring within the specified ruleset(s). When a ruleset filter is applied, domain and algorithm reference usage is not updated. This operation will fail if any file format referencing the algorithm is used from rulesets that don't match the filter. ## Response 200 fields (application/json): - `algorithmName` (string, required) The name of the algorithm to which this usage report applies. - `algorithmMaskingType` (string) The type of value this algorithm masks. This value is only available for algorithms based on the Algorithm Extensibility Framework. Enum: "BIG_DECIMAL", "LOCAL_DATE_TIME", "STRING", "BYTE_BUFFER", "GENERIC_DATA_ROW", "ADVANCED_OBJECT" - `columnMetadataIds` (array) A list of the IDs of all columnMetadata objects that reference the algorithm. - `fileFieldMetadataIds` (array) A list of the IDs of all fileFieldMetadata objects that reference the algorithm. - `mainframeDatasetFieldMetadataIds` (array) A list of the IDs of all mainframeDatasetFieldMetadata objects that reference the algorithm. - `environmentIds` (array) A list of the IDs of all environments where the algorithm is used. - `rulesetIds` (array) A list of the IDs of all rulesets where the algorithm is used. - `domainNames` (array) A list of the names of all domains that reference the algorithm. - `algorithmReferences` (array) A list of the names of all other algorithms contain references to this algorithm. - `assignmentDetails` (array) A extended usage objects that describe the full path to each algorithm usage for all column, file and mainframe dataset assignments. - `assignmentDetails.assignmentType` (string, required) The type of algorithm usage. Enum: "DATABASE_COLUMN", "FILE_FIELD", "MAINFRAME_DATASET_FIELD" - `assignmentDetails.environmentName` (string) The environment where the algorithm usage occurs, if any. For file and dataset usage, this will return only one of potentially many environments where the file format referencing the algorithm is applied. - `assignmentDetails.databaseRulesetName` (string) The database ruleset where the algorithm usage occurs, if applicable. - `assignmentDetails.databaseTableName` (string) The database table where the algorithm usage occurs, if applicable. - `assignmentDetails.databaseColumnName` (string) The database column where the algorithm usage occurs, if applicable. - `assignmentDetails.fileRulesetName` (string) The name of the file ruleset where the algorithm usage occurs, if applicable. - `assignmentDetails.fileName` (string) The name of the file where the algorithm usage occurs, if applicable. - `assignmentDetails.fileFormatName` (string) The name of the file format where the algorithm usage occurs, if applicable. - `assignmentDetails.fileRecordTypeName` (string) The name of the file record type where the algorithm usage occurs, if applicable. - `assignmentDetails.fileFieldName` (string) The name of the file field where the algorithm usage occurs, if applicable - `assignmentDetails.mainframeDatasetRulesetName` (string) The name of the mainframe dataset ruleset where the algorithm usage occurs, if applicable. - `assignmentDetails.mainframeDatasetFileName` (string) The name of the mainframe dataset file where the algorithm usage occurs, if applicable. - `assignmentDetails.mainframeDatasetFormatName` (string) The name of the mainframe dataset format where the algorithm usage occurs, if applicable. - `assignmentDetails.mainframeDatasetRecordTypeName` (string) The name of the mainframe dataset record type where the algorithm usage occurs, if applicable. - `assignmentDetails.mainframeDatasetFieldName` (string) The name of t(he mainframe dataset field where the algorithm usage occurs, if applicable. ## Response 400 fields ## Response 401 fields ## Response 404 fields