Field Mapping

Create Field Mapping

POST
Create field mappings for a connection after user input

Headers

x-revert-public-tokenstringRequired
Your public key, to be used on the frontend usually.
x-revert-t-idstringRequired
The unique customer id used when the customer linked their account.
x-revert-t-tokenstringRequired
The temp used to identify tenant.

Request

This endpoint expects an object.
standardMappings
list of objectsRequired
customMappings
list of objectsRequired

Response

This endpoint returns an object
status
enum
Allowed values: okerror
POST
$curl -X POST https://api.revert.dev/field-mapping \
> -H "x-revert-public-token: string" \
> -H "x-revert-t-id: string" \
> -H "x-revert-t-token: string" \
> -H "Content-Type: application/json" \
> -d '{
> "standardMappings": [
> {
> "sourceFieldName": "string",
> "targetFieldName": "string",
> "object": "string"
> }
> ],
> "customMappings": [
> {
> "sourceFieldName": "string",
> "targetFieldName": "string",
> "object": "string"
> }
> ]
>}'
Response
1{
2 "status": "ok"
3}