# FileMode

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 named type of the API.

## Fields

- `mode` (string, matching ^0?[0-7]{3}$, required): Permissions as three octal digits with an optional leading 0, such as 644 or 755.
- `path` (HomePath): Path of a single entry to change. Supply either path or paths.
- `paths` (array of HomePath): Paths of entries to receive the same mode. The response returns the changed entries in files and any symbolic links it skipped in skipped.
- `recursive` (boolean): Whether to apply the mode recursively to a directory and its contents. Directories receive the specified mode, files receive it with execute bits cleared, and symbolic links are skipped.

## Used by

- [POST /files/{user}/mode](https://urbestack.com/docs/api/post-files-user-mode.md): Set the permissions of one or more entries
