Zum Hauptinhalt springen
PATCH
/
cms
/
hubdb
/
2026-03
/
tables
/
{tableIdOrName}
/
rows
/
{rowId}
/
draft
Aktualisiert eine vorhandene Zeile
curl --request PATCH \
  --url https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "childTableId": 123,
  "displayIndex": 123,
  "values": {},
  "name": "<string>",
  "path": "<string>"
}
'
import requests

url = "https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft"

payload = {
"childTableId": 123,
"displayIndex": 123,
"values": {},
"name": "<string>",
"path": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
childTableId: 123,
displayIndex: 123,
values: {},
name: '<string>',
path: '<string>'
})
};

fetch('https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'childTableId' => 123,
'displayIndex' => 123,
'values' => [

],
'name' => '<string>',
'path' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft"

payload := strings.NewReader("{\n \"childTableId\": 123,\n \"displayIndex\": 123,\n \"values\": {},\n \"name\": \"<string>\",\n \"path\": \"<string>\"\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.patch("https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"childTableId\": 123,\n \"displayIndex\": 123,\n \"values\": {},\n \"name\": \"<string>\",\n \"path\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId}/draft")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"childTableId\": 123,\n \"displayIndex\": 123,\n \"values\": {},\n \"name\": \"<string>\",\n \"path\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "childTableId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "name": "<string>",
  "path": "<string>",
  "publishedAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "values": {}
}
{
"message": "Invalid input (details will vary based on the error)",
"correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
"category": "VALIDATION_ERROR",
"links": {
"knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
}
}

Supported products

Autorisierungen

Authorization
string
header
erforderlich

The access token received from the authorization server in the OAuth 2.0 flow.

Pfadparameter

rowId
string
erforderlich

Die ID der Zeile

Pattern: \d+
tableIdOrName
string
erforderlich

Die ID oder der Name der Tabelle

Body

application/json
childTableId
integer<int64>
erforderlich

Gibt den Wert für die Spalte „Untergeordnete Tabellen-ID“ an

displayIndex
integer<int32>
erforderlich

Die Indexposition für die Anzeige der Zeile innerhalb der Tabelle.

values
object
erforderlich

Liste der Schlüssel-Wert-Paare mit dem Spaltennamen und dem Spaltenwert

name
string

Gibt den Wert für die „hs_name“-Spalte an. Wird als Titel in den dynamischen Seiten verwendet.

path
string

Gibt den Wert für die „hs_path“-Spalte an. Wird als Slug in den dynamischen Seiten verwendet.

Antwort

successful operation

childTableId
string
erforderlich

Gibt den Wert für die Spalte „Untergeordnete Tabellen-ID“ an

createdAt
string<date-time>
erforderlich

Zeitstempel, wann die Zeile erstellt wurde

id
string
erforderlich

Die ID der Tabellenzeile

name
string
erforderlich

Gibt den Wert für die „hs_name“-Spalte an. Wird als Titel in den dynamischen Seiten verwendet.

path
string
erforderlich

Gibt den Wert für die „hs_path“-Spalte an. Wird als Slug in den dynamischen Seiten verwendet.

publishedAt
string<date-time>
erforderlich

Der Zeitstempel, der im Datums- und Zeitformat angibt, wann die Zeile zuletzt veröffentlicht wurde.

updatedAt
string<date-time>
erforderlich

Zeitstempel, wann die Zeile das letzte Mal aktualisiert wurde

values
object
erforderlich

Liste der Schlüssel-Wert-Paare mit dem Spaltennamen und dem Spaltenwert

Zuletzt geändert am 1. April 2026