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

# Create Page



## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#ONENOTE_CREATE_PAGE
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#ONENOTE_CREATE_PAGE:
    post:
      summary: Create Page
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: ONENOTE_CREATE_PAGE
                parameters:
                  type: object
                  properties:
                    type:
                      type: string
                      description: 'Type : Select the Type of your operation.'
                      enum:
                        - users
                        - groups
                        - sites
                        - me
                    userId:
                      type: string
                      description: >-
                        User ID : Specify the ID of the User to Create Page.
                        (example:
                        "1-22db9939679d4eada2698a4e983f7a63!245-45b54f25-123d-4db3-a286-b82791117671") 

                        This field appears only when 'type' = 'users')
                    groupId:
                      type: string
                      description: >-
                        Group ID : Specify the ID of the Group to Create Page.
                        (example:
                        "1-22db9939679d4eada2698a4e983f7a63!245-45b54f25-123d-4db3-a286-b82791117671") 

                        This field appears only when 'type' = 'groups')
                    siteId:
                      type: string
                      description: >-
                        Site ID : Specify the ID of the Site to Create Page.
                        (example:
                        "1-22db9939679d4eada2698a4e983f7a63!245-45b54f25-123d-4db3-a286-b82791117671") 

                        This field appears only when 'type' = 'sites')
                    contentType:
                      type: string
                      description: 'Content Type : Select the Content Type of your Content.'
                      enum:
                        - html
                        - multipart
                    presentationContent:
                      type: object
                      description: >-
                        Presentation Content : Specify Presentation content for
                        page as HTML see the docs
                        (https://learn.microsoft.com/en-us/graph/onenote-images-files#add-a-public-image-from-the-web).
                        (example: "<!DOCTYPE html>

                        <html>
                          <head>
                            <title>A page with a block of HTML</title>
                            <meta name="created" content="2015-07-22T09:00:00-08:00" />
                          </head>
                          <body>
                            <p>Here's an image from an <i>online source</i>:</p>
                            <img src="https://..." alt="an image on the page" width="500" />
                            <p>Here's an image uploaded as <b>binary data</b>:</p>
                            <img src="name:imageBlock1" alt="an image on the page" width="300" />
                            <p>Here's a file attachment:</p>
                            <object data-attachment="FileName.pdf" data="name:fileBlock1" type="application/pdf" />
                          </body>
                        </html>") 

                        This field appears only when 'contentType' =
                        'multipart')
                      properties: {}
                    multipartcontent:
                      type: object
                      description: >-
                        Multipart Content : Specify Multipart content for page
                        as JSON see the docs
                        (https://learn.microsoft.com/en-us/graph/onenote-create-page).
                        (example: "{
                          "imageBlock1": {
                            "content": <Buffer ...>,
                            "contentType": "image/jpeg",
                            "fileName": "imageBlock1"
                          },
                          "fileBlock1": {
                            "content": <Buffer ...>,
                            "contentType": "application/pdf",
                            "fileName": "fileBlock1"
                          }
                        }") 

                        This field appears only when 'contentType' =
                        'multipart')
                      properties: {}
                    htmlcontent:
                      type: object
                      description: |-
                        Content (example: "<!DOCTYPE html>
                        <html>
                          <head>
                            <title>A page with a block of HTML</title>
                            <meta name="created" content="2015-07-22T09:00:00-08:00" />
                          </head>
                          <body>
                            <p>This page contains some <i>formatted</i> <b>text</b> and an image.</p>
                            <img src="https://..." alt="an image on the page" width="500" />
                          </body>
                        </html>"). Should only appear when contentType is html.
                      properties: {}
                    sectionId:
                      type: string
                      description: >-
                        Section ID : Specify the ID of the Section to Create
                        Page. (example:
                        "1-q3259d12-4211-459f-bdf0-2a2a21054865"). Should be
                        required when type is sites or groups. Optional when
                        type is users or me.
                  required:
                    - type
                    - userId
                    - groupId
                    - siteId
                    - contentType
                    - presentationContent
                    - htmlcontent
                    - sectionId
                  x-integration: onenote
              required:
                - tool
                - parameters
      responses:
        '200':
          description: Success
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````