# PUT /our-company/ai-fill-prompts/:form_id

**Resource:** [Company](./company.md)  
**MCP tool:** `set_ai_fill_prompt`  
**Scopes:** `company:write`  
**Write operation:** yes

Set the master prompt for one "Fill with AI" form. The master prompt is prepended to the AI Fill system prompt for that form, so it steers tone, format, and field rules every time AI Fill runs there (e.g. set form_id "create-deal-multi-step" to enforce a consistent Opportunity Title format). Get valid form_ids from list_ai_fill_prompts. Overrides only the named form; other forms are untouched.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `form_id` | path | string | yes | Form to configure. Get valid ids from list_ai_fill_prompts (e.g. "create-deal-multi-step"). |
| `master_prompt` | body | string | yes | Instruction prepended to the AI Fill system prompt for this form. |
| `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 PUT   "https://api.trustpager.com/functions/v1/api/v1/our-company/ai-fill-prompts/:form_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"master_prompt":"...","require_approval":"..."}'
```

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