update_page_type
Update a page type's name, slug, icon, URL prefix, child settings, or custom-field schema. Omitted fields keep their current values; supply the full field schema to replace it after user confirmation.
Instructions
Update a page type: name, slug, icon, url prefix, allowChildren, or its custom-field schema. Fields you omit keep their current value, EXCEPT fields, which replaces the whole schema. Only call after the user confirms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Lucide icon name | |
| name | No | Display name | |
| slug | No | URL-safe slug, lowercase | |
| fields | No | Replaces the whole custom-field schema. Read the current one with get_page_type first and send it back with your edit applied - fields you omit are dropped, and their values stop being editable on existing pages. | |
| urlPrefix | No | URL prefix (e.g. 'blog') | |
| pageTypeId | No | Page type id to update | |
| description | No | ||
| allowChildren | No |