POSThttps://api.x.flatfile.com/v1/workbooks
Headers
  • true
Body Parameters
View in API Reference
Request
$curl -X POST https://api.x.flatfile.com/v1/workbooks \
> -H "Authorization: Bearer " \
> -H "X-Disable-Hooks: true" \
> -H "Content-Type: application/json" \
> -d '{
> "name": "My First Workbook",
> "labels": [
> "simple-demo"
> ],
> "sheets": [
> {
> "name": "Contacts",
> "fields": [
> {
> "type": "string",
> "key": "firstName",
> "label": "First Name"
> },
> {
> "type": "string",
> "key": "lastName",
> "label": "Last Name"
> },
> {
> "type": "string",
> "key": "email",
> "label": "Email"
> }
> ],
> "slug": "contacts",
> "mappingConfidenceThreshold": 0.5
> }
> ],
> "actions": [
> {
> "label": "Submit",
> "description": "Submit data to webhook.site",
> "mode": "foreground",
> "operation": "submitAction",
> "primary": true
> }
> ],
> "settings": {
> "trackChanges": true
> }
>}'
Response