---
title: "Create or update a mapping"
slug: "create-or-update-a-mapping"
updated: 2026-04-22T14:22:01Z
published: 2026-04-22T14:22:50Z
canonical: "docs.zilliant.com/create-or-update-a-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.
# Create or update a mapping
Put/v1/SyncRegistry/{systemName}
Creates a mapping in the SRS database or updates an existing mapping.
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 parameterssystemNamestringRequired
System name of the mapping whose metadata you want to get.
ExampleAccountToCustomer
Body parametersCreate or update a mapping
Example of mapping details
```json
{
"mappingId": "123456789",
"systemName": "Your_mapping_name",
"description": "Mapping description",
"direction": "UPLOAD_TO_FORCE",
"restEntityName": "Your_Entity",
"restIdField": "Field_id",
"crmObjectName": "Account",
"crmDataSourceId": "987654321",
"restDataSourceId": "456789012",
"fields": [
{
"mappingFieldId": "1",
"systemName": "Your_field_1",
"restField": "Your_rest_field_1",
"crmField": "Your_crm_field_1"
},
{
"mappingFieldId": "2",
"systemName": "Your_field_2",
"restField": "Your_rest_field_2",
"crmField": "Your_crm_field_2"
}
],
"filters": [
{
"filterName": "filter1",
"filterExpression": "filter_expression_1"
},
{
"filterName": "filter2",
"filterExpression": "filter_expression_2"
}
]
}
```
Expand Allobject mappingIdstring
Unique mapping ID. Provide a meaningful ID when creating; use the existing ID when updating.
Example123456789
systemNamestring
Unique mapping system name. Must match the `systemName` path parameter. Provide a meaningful name when creating; use the existing name when updating.
ExampleMapping_name
descriptionstring
User-friendly description of the mapping.
ExampleMapping description
directionstring
Specifies which database to update. Supported values:
- **DOWNLOAD_FROM_FORCE**—Add data from your CRM object to the Zilliant entity.
- **UPLOAD_TO_FORCE**—Add data from your Zilliant entity to the CRM object.
Valid values[
"DOWNLOAD_FROM_FORCE",
"UPLOAD_TO_FORCE"
]ExampleUPLOAD_TO_FORCE
restEntityNamestring
Name of the Zilliant entity to which you're mapping the CRM object.
ExampleYour_Entity
restIdFieldstring
Business key in the Zilliant entity to which you're mapping the CRM object.
ExampleField_id
crmObjectNamestring
Name of the CRM object you're mapping to the Zilliant entity.
ExampleAccount
crmDataSourceIdstring
ID of the data source created for the CRM object.
Example987654321
restDataSourceIdstring
ID of the data source created for the Zilliant entity.
Example456789012
fields Array of object
Field mappings between the Zilliant entity and the CRM object.
Min items1object mappingFieldIdstring
Unique field mapping ID. Provide a meaningful ID when creating; use the existing ID when updating.
Example1
systemNamestring
Unique system name of the field mapping. Provide a meaningful name when creating; use the existing name when updating.
ExampleYour_field_1
restFieldstring
ID of the Zilliant entity field mapped to the `crmField`.
ExampleYour_rest_field_1
crmFieldstring
Name of the CRM field to which you are mapping the `restField`.
ExampleYour_crm_field_1
filters Array of object | null
Limits the data synchronized between the CRM object and the Zilliant entity.
object filterNamestring
Unique filter name. Provide a meaningful name when creating; use the existing name when updating.
Examplefilter1
filterExpressionstring
Filter expression in the format `fieldSystemName operator fieldValue`. Supported operators:
- **eq**—Equal
- **ne**—Not equal
- **lt**—Less than
- **le**—Less than or equal
- **gt**—Greater than
- **ge**—Greater than or equal
- **and**—Logical AND
- **or**—Logical OR
ExampleStageName eq 'Closed Won'
Responses204
Mapping created or updated successfully.
400
Bad request, for example, path **systemName** does not match body **systemName**.