---
title: "Pin File To Prompt"
method: POST
path: "/api/ai-agents/prompts/{prompt_id}/files/{file_id}"
tags: ["ai-agents", "ai-agents"]
---

# Pin File To Prompt

`POST /api/ai-agents/prompts/{prompt_id}/files/{file_id}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/ai-agents/prompts/{prompt_id}/files/{file_id}`
- Auth: none declared

## Path parameters

- `prompt_id` integer, required
- `file_id` integer, required

## Query parameters

- `priority` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
