# Update the set of files and their attributes associated with a file ruleset in bulk Endpoint: PUT /file-rulesets/{fileRulesetId}/bulk-file-update Version: 5.1.45 Security: api_key ## Path parameters: - `fileRulesetId` (integer, required) The ID of the file ruleset to update the file for ## Request fields (application/json): - `fileMetadata` (array, required) Example: [{"fileName":"file.delimited","rulesetId":1,"fileFormatId":2,"delimiter":"*","endOfRecord":"\n"}] - `fileMetadata.rulesetId` (integer, required) The ID of the ruleset to create the file metadata on. Example: 1 - `fileMetadata.fileFormatId` (integer) The ID of the file format corresponding to this file. It is used to determine the fields for this file. This field is required. Example: 2 - `fileMetadata.delimiter` (string) The delimiter for a delimited file. This field should be left blank for other file types. Example: "*" - `fileMetadata.enclosure` (string) The text enclosure for the file. - `fileMetadata.enclosureEscapeCharacter` (string) The character used to escape a literal enclosure character within an enclosed value. By default, this is equal to the enclosure value itself, so doubling the enclosure character escape it. - `fileMetadata.escapeEnclosureEscapeCharacter` (boolean) This flag indicates whether the enclosure escape character also escapes itself. For example, if the enclosure escape character is , then the sequence would be treated as a single character, rather than an escape. - `fileMetadata.endOfRecord` (string) The string of characters that delineates the end-of-record for a file. Note that, for linux this is '\n', and for windows it is '\r\n'. Example: "\n" - `fileMetadata.nameIsRegularExpression` (boolean) Whether or not this file name represents a regular expression. - `fileMetadata.wholeFileMasking` (boolean) This flag indicates whether the file is to be read as whole or line-by-line (Only for FIXED_WIDTH file type). For example, if the whole file masking is true, then the whole file will be read as a single record, rather than reading it line by line. ## Response 200 fields (application/json): - `asyncTaskId` (integer) The ID of the AsyncTask. This field will be generated by the Masking Engine. Example: 1 - `operation` (string) The type of operation that the AsyncTask is performing. Enum: "ADD_MAPPINGS", "ALGORITHM_CREATE", "ALGORITHM_MIGRATE", "ALGORITHM_UPDATE", "DATAFILE_BULK_UPDATE", "ENCRYPTION_KEY_CREATE", "EXPORT", "EXPORT_CLASSIFIER_FILES", "EXPORT_MAPPINGS", "EXPORT_PROFILE_SET", "EXPORT_SL_VALUES", "IMPORT", "RULESET_REFRESH", "TABLE_BULK_UPDATE", "MAINFRAME_DATASET_BULK_UPDATE", "SUPPORT_BUNDLE_GENERATE" - `reference` (string) The reference for the AsyncTask. An example of a reference is the ruleset ID for a RULESET_REFRESH operation. Example: 13 - `status` (string) The status of the AsyncTask in regard to its completion. Enum: "CANCELLED", "FAILED", "RUNNING", "SUCCEEDED", "WAITING" - `startTime` (string) The date and time that this AsyncTask was started. - `endTime` (string) The date and time that this AsyncTask completed. - `cancellable` (boolean) True if the AsyncTask can be cancelled, false otherwise. - `exceptionDetail` (string) The details associated with the Java exception that caused this async task to fail, if applicable. ## Response 400 fields ## Response 403 fields ## Response 404 fields