UpdatePageBody

Request body for updating a Page.

Definition

TypeScript
interface UpdatePageBody {
  title?: string | undefined;
  slug?: string | undefined;
  body?: string | undefined;
  parentId?: string | null | undefined;
}

Fields

FieldTypeNotes
titlestring | undefinedoptional — New title.
slugstring | undefinedoptional — New slug. Must be kebab-case, unique among siblings, and not reserved.
bodystring | undefinedoptional — New MDX body.
parentIdstring | null | undefinedoptional — Re-parent the page. Pass null to move to top level.