{
  "opencollection": "1.0.0",
  "info": {
    "name": "HubSpot CMS HubDB API",
    "version": "v3"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Tables",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Hubspot List Hubdb Tables",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/cms/v3/hubdb/tables",
            "params": [
              {
                "name": "sort",
                "value": "example-value",
                "type": "query",
                "description": "Field to sort results by."
              },
              {
                "name": "after",
                "value": "example-value",
                "type": "query",
                "description": "The cursor for pagination to get the next page of results."
              },
              {
                "name": "limit",
                "value": "100",
                "type": "query",
                "description": "The maximum number of results to return per page."
              },
              {
                "name": "createdAt",
                "value": "2025-03-15T14:30:00Z",
                "type": "query",
                "description": "Filter tables created at this timestamp."
              },
              {
                "name": "updatedAt",
                "value": "2025-03-15T14:30:00Z",
                "type": "query",
                "description": "Filter tables updated at this timestamp."
              }
            ]
          },
          "docs": "Returns a list of all HubDB tables in the portal. Each table entry includes metadata such as the table name, label, column definitions, and publish status. Both published and draft tables are accessible through this endpoint."
        },
        {
          "info": {
            "name": "Hubspot Create a Hubdb Table",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.hubapi.com/cms/v3/hubdb/tables",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new HubDB table with the specified name, label, and column definitions. The new table starts in draft state and must be published to make it available for CMS page use."
        },
        {
          "info": {
            "name": "Hubspot Get a Hubdb Table",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/cms/v3/hubdb/tables/:tableIdOrName",
            "params": [
              {
                "name": "tableIdOrName",
                "value": "500123",
                "type": "path",
                "description": "The ID or name of the HubDB table to retrieve."
              }
            ]
          },
          "docs": "Returns the details of a specific HubDB table identified by its ID or name, including column definitions, publish status, and metadata."
        },
        {
          "info": {
            "name": "Hubspot Update a Hubdb Table",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.hubapi.com/cms/v3/hubdb/tables/:tableIdOrName",
            "params": [
              {
                "name": "tableIdOrName",
                "value": "500123",
                "type": "path",
                "description": "The ID or name of the HubDB table to update."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing HubDB table's metadata, label, or column definitions. Updates are applied to the draft version of the table and must be published to take effect on live pages."
        },
        {
          "info": {
            "name": "Hubspot Delete a Hubdb Table",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/cms/v3/hubdb/tables/:tableIdOrName",
            "params": [
              {
                "name": "tableIdOrName",
                "value": "500123",
                "type": "path",
                "description": "The ID or name of the HubDB table to delete."
              }
            ]
          },
          "docs": "Permanently deletes a HubDB table and all its rows. This action cannot be undone. Deleting a table that is used by CMS pages may break those pages."
        },
        {
          "info": {
            "name": "Hubspot Publish Hubdb Table Draft",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.hubapi.com/cms/v3/hubdb/tables/:tableIdOrName/draft/push-live",
            "params": [
              {
                "name": "tableIdOrName",
                "value": "500123",
                "type": "path",
                "description": "The ID or name of the HubDB table to publish."
              }
            ]
          },
          "docs": "Publishes the draft version of a HubDB table, making all pending changes to the table structure and rows live. After publishing, the draft and live versions are synchronized."
        }
      ]
    },
    {
      "info": {
        "name": "Rows",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Hubspot List Hubdb Table Rows",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/cms/v3/hubdb/tables/:tableIdOrName/rows",
            "params": [
              {
                "name": "tableIdOrName",
                "value": "500123",
                "type": "path",
                "description": "The ID or name of the HubDB table."
              },
              {
                "name": "sort",
                "value": "example-value",
                "type": "query",
                "description": "Column to sort results by."
              },
              {
                "name": "after",
                "value": "example-value",
                "type": "query",
                "description": "The cursor for pagination to get the next page of results."
              },
              {
                "name": "limit",
                "value": "100",
                "type": "query",
                "description": "The maximum number of results to return per page."
              },
              {
                "name": "properties",
                "value": "example-value",
                "type": "query",
                "description": "A comma-separated list of column names to return."
              }
            ]
          },
          "docs": "Returns the rows of a specific HubDB table. By default, returns rows from the published version of the table. Use the draft parameter to retrieve rows from the draft version."
        },
        {
          "info": {
            "name": "Hubspot Add a Row to a Hubdb Table",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.hubapi.com/cms/v3/hubdb/tables/:tableIdOrName/rows",
            "params": [
              {
                "name": "tableIdOrName",
                "value": "500123",
                "type": "path",
                "description": "The ID or name of the HubDB table to add a row to."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds a new row to a HubDB table. The row data is added to the draft version of the table. Publish the table draft to make the new row visible on live pages."
        },
        {
          "info": {
            "name": "Hubspot Get a Hubdb Table Row",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/cms/v3/hubdb/tables/:tableIdOrName/rows/:rowId",
            "params": [
              {
                "name": "tableIdOrName",
                "value": "500123",
                "type": "path",
                "description": "The ID or name of the HubDB table."
              },
              {
                "name": "rowId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the row to retrieve."
              }
            ]
          },
          "docs": "Returns a specific row from a HubDB table by its row ID. Returns the published version of the row by default."
        },
        {
          "info": {
            "name": "Hubspot Update a Hubdb Table Row",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.hubapi.com/cms/v3/hubdb/tables/:tableIdOrName/rows/:rowId",
            "params": [
              {
                "name": "tableIdOrName",
                "value": "500123",
                "type": "path",
                "description": "The ID or name of the HubDB table."
              },
              {
                "name": "rowId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the row to update."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Performs a partial update of a specific HubDB table row. Only the columns included in the request body will be updated. Changes are applied to the draft version and must be published."
        },
        {
          "info": {
            "name": "Hubspot Delete a Hubdb Table Row",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/cms/v3/hubdb/tables/:tableIdOrName/rows/:rowId",
            "params": [
              {
                "name": "tableIdOrName",
                "value": "500123",
                "type": "path",
                "description": "The ID or name of the HubDB table."
              },
              {
                "name": "rowId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the row to delete."
              }
            ]
          },
          "docs": "Permanently deletes a row from a HubDB table. The deletion is applied to the draft version and must be published to remove the row from live pages."
        }
      ]
    }
  ],
  "bundled": true
}