# POST /files/:file_id/acl

**Resource:** [Files](./files.md)  
**MCP tool:** `add_file_acl_entry`  
**Scopes:** `files:write`  
**Write operation:** yes

Give a workspace member or a role access to a file. Takes effect when the file's visibility is "restricted" (set it with update_file).

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `file_id` | path | string | yes | REQUIRED. The file id. |
| `principal_type` | body | string | yes | "user" for one workspace member, "role" for everyone with a role. |
| `principal_id` | body | string | yes | For "user": the member's user id. For "role": the role name exactly as shown in Settings, Roles. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/files/:file_id/acl"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"principal_type":"...","principal_id":"...","require_approval":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`