# Collection Formation Resource

> Creates a collection of keyed JSON items. Items are written through the collections API, not declared in a template.

# Collection

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

## Syntax

```yaml
type: collection
properties:
  name: String
  schema: Object
```

## Output

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

```yaml
      some_field:
        ref: MyCollection
```

## Properties

**`name`**

Unique within the project.

_Required_: Yes
_Type_: String

---

**`schema`**

A JSON Schema every item's `data` must satisfy, stored as written.

_Required_: No
_Type_: Object
_Nullable_: Yes

---
