Create entry
create_entryCreate a new entry in a collection. Content is VALIDATED against the collection's field schema (call get_collection first to see field names, types, and which fields are lists). Invalid shapes are rejected with warnings. Value shapes match save_entry_content: list: true fields take arrays; reference fields take entry ID strings (an array of IDs when list: true); date fields take YYYY-MM-DD, or an ISO timestamp with a numeric UTC offset when the field's config.time is true. The entry's name and slug are the top-level arguments, never content: keys for the built-in name and slug fields are refused. A retry makes a second entry: if the answer was lost, look for the slug with list_entries before trying again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Entry name | |
| slug | No | URL slug for the entry (lowercase letters, numbers and hyphens). Derived from the name when omitted; a taken slug gets a suffix. Pass it explicitly when the collection still uses a legacy text field named slug, so the copy in content matches. | |
| content | No | Entry content as key-value pairs matching the collection schema | |
| projectId | Yes | The project ID | |
| collectionId | Yes | The collection ID |