page_apply
# page_apply
Creates a blank general page (public, as the console creates it), changes a page title, slug or header settings, or makes pages public or private, as the console page screens do. Membership pages keep their slug and the default membership page stays public; the preview repeats the console warnings. Called without confirmToken it previews and returns a confirmToken; repeating the same input with it executes once.
## Inputs
| Field | Required here | Contract |
| --- | --- | --- |
| `action` | Yes | one of: `create`, `update`, `visibility` (by `kind`) |
| `action.title` | Yes | When `action.kind` is `create`: string; min length 1; max length 100; Page title, 1–100 UTF-16 code units after trimming (console str_err_4349). |
| `action.slug` | No | When `action.kind` is `create`: string; min length 1; max length 120; pattern `^[a-z0-9]+(?:-[a-z0-9]+)*$`; Slug: lowercase letters, digits and single hyphens, up to 120 characters (console str_6898). |
| `action.pageId` | Yes | When `action.kind` is `update`: integer; greater than 0 |
| `action.title` | No | When `action.kind` is `update`: string; min length 1; max length 100; Page title, 1–100 UTF-16 code units after trimming (console str_err_4349). |
| `action.slug` | No | When `action.kind` is `update`: string; min length 1; max length 120; pattern `^[a-z0-9]+(?:-[a-z0-9]+)*$`; Slug: lowercase letters, digits and single hyphens, up to 120 characters (console str_6898). |
| `action.mobileChannelInfo` | No | When `action.kind` is `update`: boolean |
| `action.displayTitle` | No | When `action.kind` is `update`: string; max length 100; Display title (header settings), 0–100 UTF-16 code units after trimming; empty clears it. |
| `action.pageIds` | Yes | When `action.kind` is `visibility`: array; items: integer; greater than 0; min items 1; max items 100 |
| `action.visibility` | Yes | When `action.kind` is `visibility`: `PUBLIC`, `PRIVATE` |
| `confirmToken` | No | string; pattern `^ct[a-f\d]{32}$`; The confirmToken from this tool's preview result. Omit it to preview; repeat the same input with it to execute. |