Edit content item
edit_content_itemUpdate fields on an existing content item. Identify it by item_id, OR — when you only know its name — by site_id + content_type + (slug | title); title resolves fuzzily (exact then contains) and errors with the available titles when there's no unique match. patch may include content (shallow-merged into existing content JSON), slug (rename — the old URL 308-redirects to the new one once published), and/or visibility. At least one field is required. When content is patched, the MERGED result is validated against the content_type schema (lenient: required present + declared types; extra fields allowed) and rejected with paths if it would leave the item missing a required field. An image-typed field holds an OBJECT { "url": "…", "alt": "…" } — a bare URL string is accepted and stored as { url }. content is SHALLOW-merged, so patching an image field replaces the whole object: re-send alt alongside url or it is dropped. Ownership is verified via the parent site's user_id. Throws on slug collision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Exact item slug to resolve (with site_id + content_type). | |
| patch | Yes | ||
| title | No | Item title to resolve fuzzily (case-insensitive exact, then contains). Errors with the available titles if there's no unique match. | |
| item_id | No | The item's UUID (from a content list). | |
| site_id | No | Site UUID — required when resolving by content_type + slug/title. | |
| content_type | No | Collection content type — required when resolving by slug/title. |