> ## 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.

# Install one page template at a chosen slug



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/teams/{team_id}/hubs/{hub_id}/pages/from-template
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/from-template:
    post:
      tags:
        - pages-admin
      summary: Install one page template at a chosen slug
      operationId: >-
        pages_admin.post_pages_admin_post_teams_by_team_id_hubs_by_hub_id_pages_from_template
      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: header
          name: Idempotency-Key
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Idempotency-Key
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/PageScaffoldEnvelope'
        required: true
      responses:
        '201':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/PageScaffoldResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    PageScaffoldEnvelope:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/PageScaffoldResource'
      required:
        - data
      title: PageScaffoldEnvelope
      type: object
    PageScaffoldResponse:
      properties:
        data:
          $ref: '#/components/schemas/PageScaffoldResultResource'
      required:
        - data
      title: PageScaffoldResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    PageScaffoldResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/PageScaffoldAttributes'
        type:
          const: page_scaffolds
          title: Type
          type: string
      required:
        - type
        - attributes
      title: PageScaffoldResource
      type: object
    PageScaffoldResultResource:
      properties:
        attributes:
          $ref: '#/components/schemas/PageScaffoldResultAttributes'
        id:
          title: Id
          type: string
        type:
          const: page_scaffolds
          default: page_scaffolds
          title: Type
          type: string
      required:
        - id
        - attributes
      title: PageScaffoldResultResource
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    PageScaffoldAttributes:
      additionalProperties: false
      properties:
        catalog_digest:
          maxLength: 128
          title: Catalog Digest
          type: string
        page_template_id:
          maxLength: 100
          pattern: ^[a-z0-9][a-z0-9-]*$
          title: Page Template Id
          type: string
        privacy:
          enum:
            - public
            - private
          title: Privacy
          type: string
        slug:
          maxLength: 100
          pattern: ^[a-z0-9][a-z0-9_-]*$
          title: Slug
          type: string
        title:
          maxLength: 200
          minLength: 1
          title: Title
          type: string
      required:
        - page_template_id
        - slug
        - title
        - privacy
        - catalog_digest
      title: PageScaffoldAttributes
      type: object
    PageScaffoldResultAttributes:
      properties:
        hub_id:
          title: Hub Id
          type: string
        page_id:
          title: Page Id
          type: string
        page_template_id:
          title: Page Template Id
          type: string
        published_revision:
          title: Published Revision
          type: integer
        slug:
          title: Slug
          type: string
      required:
        - hub_id
        - page_id
        - slug
        - page_template_id
        - published_revision
      title: PageScaffoldResultAttributes
      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

````