Skip to main content
POST
Set the file-type allow/deny rules for a connection

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <token>. The token is either a user token / OAuth access token, or a service-account API key (cfk_...). A key is valid on every endpoint and acts as its service account, an organization member with per-store permissions. Refused keys answer 403 with Invalid API key., API key revoked., API key expired. or API key disabled..

Path Parameters

project_id
string<uuid>
required

UUID of the project

connection_id
string<uuid>
required

UUID of the connection

Body

application/json
mode
enum<string>
required

allow = only import the listed types; deny = import everything except them

Available options:
allow,
deny
extensions
string[]
Maximum array length: 100

Bare file extension, e.g. "pdf" (leading dot tolerated on input)

Response

Updated connection (rules stored under params.file_type_rules)