Create Entry
create_entryCreate a new content entry in a collection by providing the collection slug and field data. Supports draft or published state and optional locale.
Instructions
Create a new content entry in a collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Object where keys are field names and values are the content (e.g. { title: 'My Post', slug: 'my-post' }). Richtext fields: use a markdown string, not Lexical/HTML objects. Relation fields: on write send the related entry's UUID string or numeric id only; one-to-one = one value, one-to-many = array of UUIDs/ids. Do not pass the nested entry object from get_entry/list_entries. Media fields: asset UUID strings and/or numeric asset ids (array when multiple). | |
| state | No | Publication state: 'published' or 'draft' (default) | |
| locale | No | Locale code (e.g. 'en') | |
| status | No | Deprecated alias for state: 'published' or 'draft' | |
| collection_slug | Yes | The collection slug |