Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.

Path Parameters

connection_id
string<uuid>
required

Body

application/json
provider_folder_id
string
required

Folder ID from the source provider

sync_mode
enum<string>
required

Sync mode for this folder

Available options:
sync,
skip,
manual
folder_name
string | null

Display name of the folder

folder_path
string | null

Display path of the folder

parent_folder_id
string | null

Parent folder's provider ID for inheritance resolution

Response

Successful Response

id
string<uuid>
required

Unique policy ID

provider_folder_id
string
required

Folder ID from the source provider

sync_mode
enum<string>
required

Sync mode for this folder

Available options:
sync,
skip,
manual
folder_name
string | null

Display name of the folder

folder_path
string | null

Display path of the folder

parent_folder_id
string | null

Parent folder's provider ID

connection_id
string<uuid> | null

Connection ID (null for integration defaults)