Pular para o conteúdo principal
POST
/
webhooks
/
v3
/
{appId}
/
subscriptions
/
batch
/
update
Criar assinaturas de eventos em lote
curl --request POST \
  --url https://api.hubapi.com/webhooks/v3/{appId}/subscriptions/batch/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "inputs": [
    {
      "active": true,
      "id": 12
    }
  ]
}
'
{
  "completedAt": "2020-04-17T02:19:26.283Z",
  "results": [
    {
      "active": true,
      "createdAt": "2019-06-06T16:56:16.652Z",
      "eventType": "contact.propertyChange",
      "id": "1234",
      "propertyName": "firstname",
      "updatedAt": "2019-08-06T16:56:16.652Z"
    },
    {
      "active": false,
      "createdAt": "2019-06-06T16:56:16.652Z",
      "eventType": "contact.create",
      "id": "4567",
      "updatedAt": "2019-08-06T16:56:16.652Z"
    }
  ],
  "startedAt": "2020-04-17T02:19:26.256Z",
  "status": "COMPLETE"
}

Supported products

Autorizações

Authorization
string
header
obrigatório

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

Parâmetros de caminho

appId
integer<int32>
obrigatório

O ID do aplicativo de destino.

Corpo

application/json

Updated details for the specified subscriptions.

inputs
object[]
obrigatório

Resposta

successful operation

completedAt
string<date-time>
obrigatório

A data e a hora em que a operação em lote foi concluída.

results
object[]
obrigatório

A lista de resultados da operação em lote.

startedAt
string<date-time>
obrigatório

A data e a hora em que a operação em lote começou.

status
enum<string>
obrigatório

O status atual da operação em lote, que pode ser PENDENTE, PROCESSANDO, CANCELADO ou CONCLUÍDO.

Opções disponíveis:
CANCELED,
COMPLETE,
PENDING,
PROCESSING

Uma coleção de links relacionados associados à operação em lote.

requestedAt
string<date-time>

A data e a hora em que a operação em lote foi solicitada.

Last modified on April 13, 2026