Filescom behaviors

From Files-com/files-cli · View interactive version

Filescom behaviors is an AI agent skill from the GitHub repository Files-com/files-cli. A Behavior is an API resource for what are also known as Folder Settings.

How to use this skill

Skill file

filescom-behaviors

A Behavior is an API resource for what are also known as Folder Settings. Every behavior is associated with a folder.

Depending on the behavior, it may also operate on child folders. It may be overridable at the child folder level or maybe can be added to at the child folder level. The exact options for each behavior type are explained in the table below.

Each behavior type also has a recursion mode in the behavior type documentation. always means the behavior is always recursive, never means it is never recursive, and sometimes means callers may choose the value of the recursive field.

Some behavior types are visible to users without administrative permission on the behavior's folder, as indicated by Visible to non-admins? below. List Behaviors and List Behaviors by Path return these types when the user can see that the folder exists through a permission on that folder, an applicable permission on an ancestor folder, or a permission on a descendant folder. Seeing that a folder exists does not grant access to its files. Every user can see the site root, so root-level behaviors of these types appear in site-wide lists even for users with no folder permissions. Lists remain subject to the request's workspace scope. The same folder visibility rules apply to exports of these lists.

In API list responses, site administrators and users with administrative permission on the behavior's own folder receive administrator values. Other users receive reduced values with sensitive settings removed. For Serve Publicly, these responses retain value.key and public_hosting_url, when configured, but omit the hosting username and password. The password is write-only for everyone. Some behavior types are also settable by users without administrative permission, as described below.

Each behavior uses a different format for its settings value. The accepted fields and an example are shown with each behavior type. In the REST API, send these settings as JSON within the value field.

Note: Append Timestamp behavior removed. Check Override Upload Filename behavior which have even more functionality to modify name on upload.

All subcommands also accept the flags documented in CODE0 (--api-key, --format, --workspace-id, --debug, and the pagination flags --cursor / --per-page / --max-pages on list). Those are not repeated below.

Commands

`files-cli behaviors list`

List Behaviors.

| Flag | Type | Description |

| --- | --- | --- |

| --sort-by | object | If set, sort records by the specified field in either asc or desc direction. Valid fields are behavior. |

| --filter | object | If set, return records where the specified field is equal to the supplied value. Valid fields are clickwrap_id, form_field_set_id, impacts_ui, remote_server_id or behavior. Valid field combinations are [ impacts_ui, behavior ] and [ behavior, remote_server_id ]. |

`files-cli behaviors list-for [path]`

List Behaviors by Path.

| Flag | Type | Description |

| --- | --- | --- |

| --path | string | Path to operate on. Required. |

| --sort-by | object | If set, sort records by the specified field in either asc or desc direction. Valid fields are behavior. |

| --filter | object | If set, return records where the specified field is equal to the supplied value. Valid fields are impacts_ui and behavior. Valid field combinations are [ impacts_ui, behavior ]. |

| --ancestor-behaviors | bool | If true, behaviors above this path are shown. |

`files-cli behaviors find`

Show Behavior.

| Flag | Type | Description |

| --- | --- | --- |

| --id | int64 | Behavior ID. Required. |

`files-cli behaviors create [path]`

Create Behavior.

| Flag | Type | Description |

| --- | --- | --- |

| --value | object | This field stores data specific to the type of behavior. See The Behavior Types section for the accepted value for each type of behavior. |

| --attachment-file | file | Certain behaviors may require a file, for instance, the watermark behavior requires a watermark image. Attach that file here. |

| --disable-parent-folder-behavior | bool | If true, disables the inherited behavior for this folder and its children. Valid only for behavior types that child folders may override, and requires recursive to be true. Rejected for all other behavior types. |

| --recursive | bool | Whether the behavior should apply to child folders. This is only configurable for behavior types whose recursion mode is sometimes; always behaviors stay recursive and never behaviors stay non-recursive. |

| --name | string | Name for this behavior. |

| --description | string | Description for this behavior. |

| --path | string | Path where this behavior should apply. Required. |

| --behavior | string | Behavior type. Required. |

`files-cli behaviors webhook-test`

Test Webhook.

| Flag | Type | Description |

| --- | --- | --- |

| --url | string | URL for testing the webhook. Required. |

| --method | string | HTTP request method (GET or POST). |

| --encoding | string | Encoding type for the webhook payload. Can be JSON, XML, or RAW (form data). |

| --headers | object | Additional request headers to send via HTTP. |

| --body | object | Additional body parameters to include in the webhook payload. |

`files-cli behaviors update`

Update Behavior.

| Flag | Type | Description |

| --- | --- | --- |

| --id | int64 | Behavior ID. Required. |

| --value | object | This field stores data specific to the type of behavior. See The Behavior Types section for the accepted value for each type of behavior. |

| --attachment-file | file | Certain behaviors may require a file, for instance, the watermark behavior requires a watermark image. Attach that file here. |

| --disable-parent-folder-behavior | bool | If true, disables the inherited behavior for this folder and its children. Valid only for behavior types that child folders may override, and requires recursive to be true. Rejected for all other behavior types. |

| --recursive | bool | Whether the behavior should apply to child folders. This is only configurable for behavior types whose recursion mode is sometimes; always behaviors stay recursive and never behaviors stay non-recursive. |

| --name | string | Name for this behavior. |

| --description | string | Description for this behavior. |

| --attachment-delete | bool | If true, delete the file stored in attachment. |

`files-cli behaviors delete`

Delete Behavior.

| Flag | Type | Description |

| --- | --- | --- |

| --id | int64 | Behavior ID. Required. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.