# Update file metadata by ID Endpoint: PUT /file-metadata/{fileMetadataId} Version: 5.1.47 Security: api_key ## Path parameters: - `fileMetadataId` (integer, required) The ID of the file metadata to update ## Request fields (application/json): - `rulesetId` (integer, required) The ID of the ruleset to create the file metadata on. Example: 1 - `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 - `delimiter` (string) The delimiter for a delimited file. This field should be left blank for other file types. Example: "*" - `enclosure` (string) The text enclosure for the file. - `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. - `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. - `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" - `nameIsRegularExpression` (boolean) Whether or not this file name represents a regular expression. - `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): - `fileMetadataId` (integer) The ID of the file metadata. This field is set by the Masking Engine. - `fileName` (string, required) The name of the file metadata. This name must match the name of a file in the ruleset it is created on. This name must be unique for the given ruleset; in other words, the same file cannot be added to a ruleset more than once. Example: "file.delimited" - `rulesetId` (integer, required) The ID of the ruleset to create the file metadata on. Example: 1 - `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 - `fileType` (string) The type of file this is. This field will match the file connector file type. Enum: "DELIMITED", "FIXED_WIDTH", "XML", "JSON", "PARQUET" - `delimiter` (string) The delimiter for a delimited file. This field should be left blank for other file types. Example: "*" - `enclosure` (string) The text enclosure for the file. - `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. - `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. - `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" - `nameIsRegularExpression` (boolean) Whether or not this file name represents a regular expression. - `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 400 fields ## Response 403 fields ## Response 404 fields