PATCH
Update an export rule
Request · Response · Guide: Export rules
Set autoExport to false to pause the rule. options, when sent, replaces the saved settings as a whole and must match the integration’s optionsSchema.A body with only autoExport set to false just pauses the rule, as the app toggle does, so it works even when the integration is disconnected. Resuming runs the same checks as any other change.

Authorizations

x-api-key
string
header
required

API key for authentication

Headers

Idempotency-Key
string

Optional opaque key (max 255 chars, UUIDv4 recommended) making this request idempotent for 24h: a retry with the same key and body replays the original response with Idempotent-Replayed: true.

Path Parameters

ruleId
string
required

Export rule id.

Body

application/json
folderIds
string[]

Folders whose files this rule exports (1 to 100).

contactId
string | null

Only files from this contact, a contact in this workspace. null for any contact.

schemaId
string | null

Only files of this file type: the schema's blueprintId from GET /v1/schemas (not its id). The file type must be approved. null for any schema.

autoExport
boolean

Export matching files automatically once they are processed. Set false to pause the rule.

options
object

Integration settings. Replaces the saved settings as a whole when given, and must match the integration's optionsSchema from GET /v1/export-integrations.

Response

The updated rule.

id
string
required
Example:

"6630f1c2a1b2c3d4e5f60799"

integration
enum<string>
required
Available options:
GoogleDrive,
GoogleSheets,
OneDrive,
SharePoint,
Xero,
Quickbooks,
Wafeq,
Odoo
Example:

"GoogleDrive"

folderIds
string[]
required
Example:
contactId
string | null
required

null means any contact.

schemaId
string | null
required

The file type: a schema's blueprintId from GET /v1/schemas. null means any schema.

autoExport
boolean
required
Example:

true

options
object
required

Integration settings, as saved.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required