--- title: "Update file metadata and mapping" slug: "update-file-metadata-and-mapping" updated: 2026-04-22T14:22:01Z published: 2026-04-22T14:22:50Z canonical: "docs.zilliant.com/update-file-metadata-and-mapping" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.zilliant.com/llms.txt > Use this file to discover all available pages before exploring further. # Update file metadata and mapping Patch/v1/EntityImport/{mappingId} Updates file metadata and field mappings. SecurityAPI Key: AuthorizationHeader parameter nameAuthorization Add an **Authorization** header to authenticate requests originating outside of Zilliant's internal network. Set the header to `Authorization: OAuth <tokenResponseBase64>`. `<tokenResponseBase64>` is the Base64-encoded entire JSON response body returned by the Salesforce OAuth token endpoint. Encode the full JSON payload, not only the **access_token** field. For details, read [Request an access token](https://docs.zilliant.com/apidocs/request-an-access-token). Header parametersX-Forwarded-Hoststring OAuth host for your environment. Use it for all requests that originate outside Zilliant’s internal network. For details, read **X-Forwarded-Host header** in [Introduction](https://docs.zilliant.com/apidocs/introduction-2#xforwardedhost-header). Path parametersmappingIdstringRequired Mapping identifier returned in a successful 201 response from the [POST Send file metadata](https://docs.zilliant.com/apidocs/send-file-metadata) request. Body parametersImport definition example Example of an updated import definition ```json { "entitySystemName": "My_Data", "definition": { "importMode": "REPLACE", "locale": "en-US", "fieldDelimiter": ",", "dateFormat": "dd-MM-yyyy", "dateTimeFormat": "dd-MM-yyyy HH:mm:ss", "decimalSeparator": ".", "groupingSeparator": ",", "currencySymbol": "$", "percentSymbol": "%", "ignoreSurroundingSpaces": true, "fields": [ { "systemName": "Price", "csvColumnName": "Price" } ] } } ``` Expand Allobject entitySystemNamestring Required Name of the entity to import your file into. Contact your Zilliant representative to get your entity name. ExampleMy_Data definitionobject File metadata and mapping definition. importModestring Mode of adding data. Supported values: - **UPSERT**—Insert new data into the entity and update existing records with the new information. - **INSERT**—Add new data to the entity without updating existing records. - **REPLACE**—Substitute existing records with new data. Valid values[ "UPSERT", "INSERT", "REPLACE" ]Default"INSERT"ExampleREPLACE localestring Locale of the input file. For details on supported values, read [JDK 11 Supported Locales](https://www.oracle.com/java/technologies/javase/jdk11-suported-locales.html). Default"en-US"Exampleen-US fieldDelimiterstring Field delimiter used in the input file. All commonly used delimiters are supported, such as `,`, `|`, `\t` (the only supported value for tab), `~`, `;`, and others. Default","Example, dateFormatstring Date format used in the input file. The format must follow the rules defined in the [Java SimpleDateFormat class documentation](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/SimpleDateFormat.html). **Note:** Use **MM** for months and **mm** for minutes. Default"yyyy-MM-dd"Exampledd-MM-yyyy dateTimeFormatstring Date-time format used in the input file. The format must follow the rules defined in the [Java SimpleDateFormat class documentation](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/SimpleDateFormat.html). **Note:** Use **MM** for months and **mm** for minutes. Default"yyyy-MM-dd'T'HH:mm:ss.SSS"Exampledd-MM-yyyy HH:mm:ss decimalSeparatorstring Decimal separator used in the input file. Valid values[ ".", "," ]Default"."Example. groupingSeparatorstring Thousands separator used in the input file. Valid values[ ".", "," ]Default","Example, currencySymbolstring Currency symbol used in the input file. You can enter any currency symbol supported by Oracle's JDK 11. Default"$"Example$ percentSymbolstring Percent symbol used in the input file. Default"%"Example% ignoreSurroundingSpacesboolean Define whether to ignore white spaces when importing data. Supported values: - **true**—Ignore white spaces except for values in quotation marks. - **false**—Preserve leading and trailing spaces. **Note:** Regardless of the **ignoreSurroundingSpaces** parameter value, SQL Server always ignores trailing spaces when checking for unique values in columns defined as business keys. This means that you can't insert two rows with business key values differing only by trailing spaces, such as `"myvalue"` and `"myvalue "`. Valid values[ true, false ]DefaultfalseExampletrue fields Array of object Field mapping from file columns to entity fields. object systemNamestring System name of the target entity field. Contact your Zilliant representative to get your entity field names. ExampleProduct_Id csvColumnNamestring Column name in the uploaded file. ExampleProductID Responses200 Data updated. 400 Invalid JSON body. 401 Authentication error. 404 Mapping ID not found. 422 Missing entity system name.