Pular para o conteúdo principal
POST
/
cms
/
v3
/
hubdb
/
tables
/
{tableIdOrName}
/
draft
/
reset
Redefinir uma tabela de rascunho
curl --request POST \
  --url https://api.hubapi.com/cms/v3/hubdb/tables/{tableIdOrName}/draft/reset \
  --header 'Authorization: Bearer <token>'
{
  "allowChildTables": true,
  "allowPublicApiAccess": true,
  "columnCount": 123,
  "columns": "{name: \"column1\"",
  "createdAt": "2023-11-07T05:31:56Z",
  "deleted": true,
  "deletedAt": "2023-11-07T05:31:56Z",
  "dynamicMetaTags": {},
  "enableChildTablePages": true,
  "id": "<string>",
  "label": "<string>",
  "name": "<string>",
  "published": true,
  "publishedAt": "2023-11-07T05:31:56Z",
  "rowCount": 123,
  "updatedAt": "2023-11-07T05:31:56Z",
  "useForPages": true,
  "createdBy": {
    "email": "<string>",
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>"
  },
  "isOrderedManually": true,
  "updatedBy": {
    "email": "<string>",
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>"
  }
}

Produtos suportados

Requer um dos seguintes produtos ou superior.
Marketing HubMarketing Hub -Professional
Sales HubSales Hub -Grátis
Service HubService Hub -Grátis
Content HubContent Hub -Professional

Authorizations

Authorization
string
header
required

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

Path Parameters

tableIdOrName
string
required

O ID ou nome da tabela a ser redefinida.

Query Parameters

includeForeignIds
boolean

Defina como "true" para preencher os valores de ID externo na resposta.

Response

successful operation

allowChildTables
boolean
required

Especifica se as tabelas secundárias podem ser criadas

allowPublicApiAccess
boolean
required

Especifica se a tabela pode ser lida pelo público sem autorização

columnCount
integer<int32>
required

Número de colunas, incluindo as excluídas

columns
object[]
required

Lista de colunas na tabela

Example:

"{name: \"column1\""

createdAt
string<date-time>
required

A data e hora em que a tabela foi criada

deleted
boolean
required

Specifies whether the table is marked as deleted.

deletedAt
string<date-time>
required

The timestamp indicating when the table was deleted.

dynamicMetaTags
object
required

Especifica os pares de valores-chave dos campos de metadados com os IDs de coluna associados.

enableChildTablePages
boolean
required

Especifica a criação de páginas dinâmicas de vários níveis usando tabelas secundárias

id
string
required

ID da tabela

label
string
required

Rótulo da tabela

name
string
required

Nome da tabela

published
boolean
required

Indicates whether the table is currently published.

publishedAt
string<date-time>
required

A data e hora em que a tabela foi publicada recentemente

rowCount
integer<int32>
required

Número de linhas na tabela

updatedAt
string<date-time>
required

A data e hora em que a tabela foi atualizada recentemente

useForPages
boolean
required

Especifica se a tabela pode ser usada para criação de páginas dinâmicas

createdBy
object
isOrderedManually
boolean

Indicates whether the table rows are ordered manually.

updatedBy
object