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

# Update Block



## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#NOTION_UPDATE_BLOCK
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/#NOTION_UPDATE_BLOCK:
    post:
      summary: Update Block
      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: NOTION_UPDATE_BLOCK
                parameters:
                  type: object
                  properties:
                    blockId:
                      type: string
                      description: >-
                        Block ID : Specify the ID of the Block to Update.
                        (example: "9bc30ad4-9373-46a5-84ab-0a7845ee52e6")
                    archived:
                      type: boolean
                      description: >-
                        Archived : Set to true to archive (delete) a block. Set
                        to false to un-archive (restore) a block.
                    paragraph:
                      type: object
                      description: >-
                        Paragraph : Paragraph block objects contain the
                        information within the paragraph property see the docs
                        (https://developers.notion.com/reference/block#paragraph).
                        (example: "{
                          "rich_text":[
                            {
                              "type":"text",
                              "text":{
                                "content":"Lacinato kale",
                                "link":null
                              }
                            }
                          ],
                          "color":"default"
                        }")
                      properties: {}
                    image:
                      type: object
                      description: >-
                        Image : Image block objects contain a file object
                        (https://developers.notion.com/reference/file-object)detailing
                        information about the image. (example: "{
                          "type":"external",
                          "external":{
                            "url":"https://website.domain/images/image.png"
                          }
                        }")
                      properties: {}
                    bookmark:
                      type: object
                      description: >-
                        Bookmark : Bookmark block objects contain the following
                        information within the bookmark property see the docs
                        (https://developers.notion.com/reference/block#bookmark)
                        (example: "{
                          "caption":[],
                          "url":"https://companywebsite.com"
                        }")
                      properties: {}
                    code:
                      type: object
                      description: >-
                        Code : Code block objects contain the following
                        information within the code property see the docs
                        (https://developers.notion.com/reference/block#code)
                        (example: "{
                          "rich_text":[
                            {
                              "type":"text",
                              "text":{
                                "content":"const a = 3"
                              }
                            }
                          ],
                          "language":"javascript"
                        }")
                      properties: {}
                    pdf:
                      type: object
                      description: >-
                        PDF : A PDF block object represents a PDF that has been
                        embedded within a Notion page. It contains the following
                        fields see the docs
                        (https://developers.notion.com/reference/block#pdf)
                        (example: "{
                          "type": "external",
                          "external": {
                              "url": "https://website.domain/files/doc.pdf"
                          }
                        }")
                      properties: {}
                    table:
                      type: object
                      description: >-
                        Table : Table block objects are parent blocks for table
                        row children. Table block objects contain the following
                        fields within the table property see the docs
                        (https://developers.notion.com/reference/block#table)
                        (example: "{
                          "table_width":2,
                          "has_column_header":false,
                          "has_row_header":false
                        }")
                      properties: {}
                    tableOfContent:
                      type: object
                      description: >-
                        Table of Contents : Table of contents block objects
                        contain the following information within the
                        table_of_contents property see the docs
                        (https://developers.notion.com/reference/block#table-of-contents)
                        (example: "{
                          "color":"default"
                        }")
                      properties: {}
                    additionalFields:
                      type: object
                      description: >-
                        Additional Fields : Specify additional fields to include
                        on this block as JSON see the docs
                        (https://developers.notion.com/reference/block)
                        (example: "{
                          "child_page":{
                            "title":"Lacinato kale"
                          },
                          "child_database":{
                            "title":"My database"
                          }
                        }")
                      properties: {}
                  required:
                    - blockId
                  x-integration: notion
              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.

````