Skip to main content

Document

This page is auto-generated from the formations OpenAPI spec. Do not edit manually — run pnpm generate-formations-resource-docs to regenerate.

Stores a text document in a project, optionally indexing it for knowledge retrieval.

note

Supports create and delete only. Updates are not applied — to replace content, delete and re-create the resource.

Syntax

type: document
properties:
content: String
path: String
filename: String
title: String
metadata: Object
tags: Object

Output

The physical resource ID is the public ID of the created resource. Reference it from other resources with a ref expression:

some_field:
ref: MyDocument

Properties

content

Document text content

Required: Yes Type: String


path

Virtual path for organising the document

Required: No Type: String Nullable: Yes


filename

Original filename

Required: No Type: String Nullable: Yes


title

Document title

Required: No Type: String Nullable: Yes


metadata

Arbitrary metadata key-value pairs

Required: No Type: Object Nullable: Yes


tags

Tag key-value pairs for filtering

Required: No Type: Object Nullable: Yes