Create Mapping
POST/api/airtable/instances/:instance/mappings
Create a dataset mapping that syncs a SKU.io dataset to a table in an Airtable base.
Body fields:
- dataset (string, required): the SKU.io dataset to sync. One of products, inventory_levels, sales_orders, sales_order_lines, purchase_orders, purchase_order_lines, suppliers.
- direction (string, optional, default outbound): outbound sends SKU.io data to Airtable; inbound reads changes back. Inbound is only supported for the products dataset.
- base_id (string, required): the target Airtable base id.
- table_id (string, required): the target table id within the base.
- key_field_id (string, required): the Airtable field that stores the SKU.io id and is used as the merge key for upserts.
- field_map (array, required, min 1): each entry maps a SKU.io source field to an Airtable target field. Each item has source (string) and target_field_id (string).
- filters (object, optional): optional filter conditions restricting which records sync.
- delete_mode (string, optional, default flag): how records removed in SKU.io are handled in Airtable. One of flag, delete, ignore.
- schedule (string, optional, default hourly): automatic sync cadence. One of fifteen_minutes, hourly, daily, manual.
- realtime_enabled (boolean, optional, default false): push changes as they happen.
- apply_mode (string, optional): for inbound mappings, whether changes are queued for review or applied automatically. One of review, auto.
- auto_create (boolean, optional, default false): when true, create missing Airtable records during sync instead of only updating existing rows.
- is_enabled (boolean, optional, default true): whether the mapping is active.
Authentication: Requires Bearer token.
Request
Responses
- 201
- 401
- 403
- 404
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.