Skip to main content
POST
/
webhooks
/
v3
/
{appId}
/
subscriptions
/
batch
/
update
Crear suscripciones a eventos en lote
curl --request POST \
  --url 'https://api.hubapi.com/webhooks/v3/{appId}/subscriptions/batch/update?hapikey=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "inputs": [
    {
      "active": true,
      "id": 123
    }
  ]
}
'
{
  "completedAt": "2023-11-07T05:31:56Z",
  "results": [
    {
      "active": true,
      "createdAt": "2023-11-07T05:31:56Z",
      "eventType": "company.associationChange",
      "id": "<string>",
      "objectTypeId": "<string>",
      "propertyName": "<string>",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "startedAt": "2023-11-07T05:31:56Z",
  "status": "CANCELED",
  "links": {},
  "requestedAt": "2023-11-07T05:31:56Z"
}
Productos compatibles
Se requiere uno de los siguientes productos o productos de ediciones superiores.
Marketing HubMarketing HubPro
Sales HubSales HubPro
Service HubService HubPro
Content HubContent HubStarter

Authorizations

hapikey
string
query
required

Path Parameters

appId
integer<int32>
required

El ID de la aplicación.

Body

application/json
inputs
object[]
required

Response

successful operation

completedAt
string<date-time>
required

La fecha y la hora en que se completó la operación por lotes.

results
object[]
required

La lista de resultados de la operación por lotes.

startedAt
string<date-time>
required

La fecha y la hora en que se inició la operación por lotes.

status
enum<string>
required

El estado actual de la operación por lotes, puede ser PENDIENTE, PROCESANDO, CANCELADO o COMPLETADO.

Available options:
CANCELED,
COMPLETE,
PENDING,
PROCESSING

Una colección de enlaces asociados con la operación por lotes.

requestedAt
string<date-time>

La fecha y la hora en que se solicitó la operación en lote.