> ## Documentation Index
> Fetch the complete documentation index at: https://docs.member.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Admin Update Page

> Partial update of a page. Only provided fields are modified.

Setting `is_homepage: false` is rejected (409,
`homepage_unset_would_orphan_hub`) when this page is the hub's sole
effective homepage — either the typed "custom" descriptor, or the legacy
is_homepage-flag fallback on a hub with no descriptor set. This used to
succeed and silently leave the hub with no homepage.

Setting `slug` to a reserved value is rejected (422,
`page_slug_reserved`), using the same reserved set enforced on create.



## OpenAPI

````yaml /openapi/mio-openapi.json patch /api/v1/teams/{team_id}/hubs/{hub_id}/pages/{identifier}
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/teams/{team_id}/hubs/{hub_id}/pages/{identifier}:
    patch:
      tags:
        - pages-admin
      summary: Admin Update Page
      description: |-
        Partial update of a page. Only provided fields are modified.

        Setting `is_homepage: false` is rejected (409,
        `homepage_unset_would_orphan_hub`) when this page is the hub's sole
        effective homepage — either the typed "custom" descriptor, or the legacy
        is_homepage-flag fallback on a hub with no descriptor set. This used to
        succeed and silently leave the hub with no homepage.

        Setting `slug` to a reserved value is rejected (422,
        `page_slug_reserved`), using the same reserved set enforced on create.
      operationId: >-
        pages_admin.patch_pages_admin_patch_teams_by_team_id_hubs_by_hub_id_pages_by_identifier
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
        - in: path
          name: identifier
          required: true
          schema:
            title: Identifier
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/PageUpdateEnvelope'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/AdminPageResponse'
          description: Successful Response
        '409':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Error response; see `errors[0].code` where present.
          x-error-codes:
            - homepage_unset_would_orphan_hub
            - page_slug_conflict
            - content_page_duplicate
            - homepage_system_pointer_active
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Error response; see `errors[0].code` where present.
          x-error-codes:
            - page_slug_reserved
            - page_slug_invalid
            - auth_page_type_change
            - content_page_slug_type_mismatch
      security:
        - HTTPBearer: []
components:
  schemas:
    PageUpdateEnvelope:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/PageUpdateResource'
      required:
        - data
      title: PageUpdateEnvelope
      type: object
    AdminPageResponse:
      additionalProperties: false
      description: Single-resource JSON:API response for admin page reads.
      properties:
        data:
          $ref: '#/components/schemas/AdminPageResource'
      required:
        - data
      title: AdminPageResponse
      type: object
    JsonApiErrorResponse:
      description: Error JSON:API response.
      properties:
        errors:
          items:
            $ref: '#/components/schemas/JsonApiError'
          title: Errors
          type: array
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - errors
      title: JsonApiErrorResponse
      type: object
    PageUpdateResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/PageUpdateAttributes'
        type:
          const: pages
          title: Type
          type: string
      required:
        - type
        - attributes
      title: PageUpdateResource
      type: object
    AdminPageResource:
      additionalProperties: false
      description: JSON:API resource object for admin page reads (includes draft_version).
      properties:
        attributes:
          $ref: '#/components/schemas/AdminPageAttributes'
        id:
          title: Id
          type: string
        type:
          const: pages
          default: pages
          title: Type
          type: string
      required:
        - id
        - attributes
      title: AdminPageResource
      type: object
    JsonApiError:
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        source:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Source
        status:
          title: Status
          type: string
        title:
          title: Title
          type: string
      required:
        - status
        - title
      title: JsonApiError
      type: object
    PageUpdateAttributes:
      additionalProperties: false
      properties:
        is_homepage:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Homepage
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        position:
          anyOf:
            - maximum: 2147483647
              minimum: 0
              type: integer
            - type: 'null'
          title: Position
        privacy:
          anyOf:
            - enum:
                - public
                - members
                - private
              type: string
            - type: 'null'
          title: Privacy
        settings:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Settings
        slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Slug
        title:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          title: Title
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
      title: PageUpdateAttributes
      type: object
    AdminPageAttributes:
      additionalProperties: false
      description: >-
        Admin read attributes — extends PageAttributes with authoring fields.


        ``draft_version`` is the OCC token required by the If-Match chain:
          GET page -> read draft_version -> PUT .../tree with If-Match: <draft_version>
          -> PUT .../publish with If-Match: <new_draft_version>

        Exposed on admin reads only (team-owner gated routes).  Portal/member

        reads use the base ``PageAttributes`` class which omits this field —
        draft

        state is authoring-side data and has no meaning for consumers.
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        deleted_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Deleted At
        draft_version:
          title: Draft Version
          type: integer
        hub_id:
          title: Hub Id
          type: string
        is_homepage:
          title: Is Homepage
          type: boolean
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        position:
          title: Position
          type: integer
        privacy:
          title: Privacy
          type: string
        settings:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Settings
        slug:
          title: Slug
          type: string
        title:
          title: Title
          type: string
        type:
          title: Type
          type: string
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - hub_id
        - title
        - slug
        - type
        - privacy
        - is_homepage
        - position
        - settings
        - meta
        - created_at
        - updated_at
        - deleted_at
        - draft_version
      title: AdminPageAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````