name: My Collection
description: A brief description of what participants will do.
task_details:
task_name: Task title shown to participants
task_introduction: "Brief introduction shown before participants begin.
"
task_steps: "- Step one
- Step two
"
collection_items:
- order: 0
title: Page title
page_items:
- order: 0
type: rich_text
content: |
Instructions shown to participants on this page.
content_format: markdown # optional; defaults to html
- order: 1
type: file_upload
description: Upload your file here
accepted_file_types:
- .jpg
- .jpeg
- .png
max_file_size_mb: 10.0
min_file_count: 1
max_file_count: 1
```
**Supported page item types:**
Instruction types collect participant input:
| Type | Description |
| -------------------------------- | ------------------------------------------------------------------------ |
| `free_text` | Open text input from participant. |
| `free_text_with_unit` | Text input with a unit selector (e.g. kg / lbs). |
| `multiple_choice` | Single or multi-select options. Set `answer_limit: 1` for single-select. |
| `multiple_choice_with_free_text` | Options with associated free-text fields. |
| `file_upload` | File submission with configurable type and size constraints. |
Content block types display content to participants (no input collected):
| Type | Description |
| ----------- | ------------------------------------------------------------------------------------------------ |
| `rich_text` | Display formatted content. Supports `markdown` or `html` via `content_format` (default: `html`). |
| `image` | Display an image. Requires `url` (HTTPS only) and `alt_text`. |
Once you're happy with your collection definition, create it:
```bash
prolific collection create -t collection.yaml
```
Save the `ID` from the response; you'll need it in the next step.