Mapping

Add mapping rules to a program

POST
Add mapping rules to a program

Path parameters

programIdstringRequired
ID of the program

Request

This endpoint expects a list of objects.
name
stringRequired
Name of the mapping rule
type
stringRequired
config
anyOptional
acceptedAt
datetimeOptional
Time the mapping rule was last updated
acceptedBy
stringOptional
User ID of the contributor of the mapping rule

Response

This endpoint returns an object
data
list of objects

Errors

POST
$curl -X POST https://api.x.flatfile.com/v1/mapping/%3AprogramId/rules \
> -H "X-Disable-Hooks: true" \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '[
> {
> "name": "string",
> "type": "string"
> }
>]'
Response
1{
2 "data": [
3 {
4 "createdAt": "2023-01-01T00:00:00Z",
5 "id": "string",
6 "name": "string",
7 "type": "string",
8 "updatedAt": "2023-01-01T00:00:00Z",
9 "acceptedAt": "2023-01-01T00:00:00Z",
10 "acceptedBy": "string",
11 "confidence": 0,
12 "config": {},
13 "createdBy": "string",
14 "deletedAt": "2023-01-01T00:00:00Z"
15 }
16 ]
17}